Skip to content

Commit

Permalink
update to symfony 5.2, phpspreadsheet 1.17
Browse files Browse the repository at this point in the history
  • Loading branch information
erelke committed Apr 10, 2021
1 parent 3728c98 commit 8d466a9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
11 changes: 5 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,15 @@
],
"require": {
"php": ">=7.1",
"symfony/framework-bundle": "~3.4|~4.0",
"twig/twig": "~2.0",
"phpoffice/phpspreadsheet": "~1.7.0"
"phpoffice/phpspreadsheet": "1.17.*"
},
"require-dev": {
"symfony/symfony": "~3.4|~4.0",
"sensio/framework-extra-bundle": "~3.0|~4.0",
"symfony/phpunit-bridge": "^4.0",
"symfony/symfony": "~3.4|~4.0|5.1.*|5.2.*",
"sensio/framework-extra-bundle": "~3.0|~4.0|5.1.*|5.2.*",
"symfony/phpunit-bridge": "^4.0|5.2.*",
"phpunit/phpunit": "^7.5",
"mpdf/mpdf": "~7.0"
"mpdf/mpdf": "~8.0"
},
"suggest": {
"mpdf/mpdf": "Add support for PDF rendering, requires ~7.0"
Expand Down
2 changes: 1 addition & 1 deletion tests/Functional/BaseFunctionalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ protected function getDocument(string $routeName, array $routeParameters = [], s
*
* @return Response
*/
protected function getResponse(string $routeName, array $routeParameters = []): Response
protected static function getResponse(string $routeName, array $routeParameters = []): Response
{
/**
* @var Router $router
Expand Down
4 changes: 2 additions & 2 deletions tests/Twig/CsvOdsXlsXlsxErrorTwigTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function testDocumentErrorTextBefore($format)
public function testStartCellIndexError($format)
{
$this->expectException(\TypeError::class);
$this->expectExceptionMessage('Argument 1 passed to MewesK\TwigSpreadsheetBundle\Wrapper\PhpSpreadsheetWrapper::startCell() must be of the type integer');
$this->expectExceptionMessage('Argument 1 passed to MewesK\TwigSpreadsheetBundle\Wrapper\PhpSpreadsheetWrapper::startCell() must be of the type int or null');

$this->getDocument('cellIndexError', $format);
}
Expand All @@ -89,7 +89,7 @@ public function testStartCellIndexError($format)
public function testStartRowIndexError($format)
{
$this->expectException(\TypeError::class);
$this->expectExceptionMessage('Argument 1 passed to MewesK\TwigSpreadsheetBundle\Wrapper\PhpSpreadsheetWrapper::startRow() must be of the type integer');
$this->expectExceptionMessage('Argument 1 passed to MewesK\TwigSpreadsheetBundle\Wrapper\PhpSpreadsheetWrapper::startRow() must be of the type int or null');

$this->getDocument('rowIndexError', $format);
}
Expand Down

0 comments on commit 8d466a9

Please sign in to comment.