Skip to content

Commit b9dea63

Browse files
authored
Upgrade extension to be compatible with phpstan 2.x (#2)
1 parent 89e9a1e commit b9dea63

8 files changed

+1634
-1340
lines changed

.php-cs-fixer.dist.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
'no_useless_return' => true,
1313
'array_syntax' => ['syntax' => 'short'],
1414
'concat_space' => ['spacing' => 'one'],
15-
'function_typehint_space' => true,
15+
'type_declaration_spaces' => true,
1616
'no_empty_statement' => true,
1717
'no_leading_namespace_whitespace' => true,
1818
'single_trait_insert_per_statement' => true,

composer.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,18 @@
1313
}
1414
],
1515
"require": {
16-
"php": "^7.1 || ^8.0",
17-
"phpstan/phpstan": "^1.4"
16+
"php": "^7.4 || ^8.0",
17+
"phpstan/phpstan": "^2.0"
1818
},
1919
"require-dev": {
2020
"friendsofphp/php-cs-fixer": "^3.0",
2121
"php-parallel-lint/php-parallel-lint": "^1.2",
22-
"phpstan/phpstan-phpunit": "^1.0",
23-
"phpstan/phpstan-strict-rules": "^1.0",
22+
"phpstan/phpstan-phpunit": "^2.0",
23+
"phpstan/phpstan-strict-rules": "^2.0",
2424
"phpunit/phpunit": "^9.5",
25-
"symfony/framework-bundle": "^4.4 || ^5.0 || ^6.0",
25+
"symfony/framework-bundle": "^4.4 || ^5.0 || ^6.0 || ^7.0",
2626
"symfony/polyfill-php80": "^1.24",
27-
"symfony/routing": "^4.4 || ^5.0 || ^6.0"
27+
"symfony/routing": "^4.4 || ^5.0 || ^6.0 || ^7.0"
2828
},
2929
"scripts": {
3030
"php-cs-fix": "vendor/bin/php-cs-fixer fix -v --config=.php-cs-fixer.dist.php",

0 commit comments

Comments
 (0)