Skip to content

Commit d7174d9

Browse files
authored
Fix tests on Symfony 5.3 (#443)
* Enable assets in test config * Require symfony/asset as a main dependency * Revert back constraints for symfony/asset * Ignore legacy code in PHPStan * Revert "Enable assets in test config" This reverts commit c2f8d05.
1 parent f80167d commit d7174d9

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
"php-translation/symfony-storage": "^2.1",
2222
"php-translation/extractor": "^2.0",
2323
"nyholm/nsa": "^1.1",
24-
"twig/twig": "^2.14.4 || ^3.3"
24+
"twig/twig": "^2.14.4 || ^3.3",
25+
"symfony/asset": "^4.4.20 || ^5.2.4"
2526
},
2627
"require-dev": {
2728
"symfony/phpunit-bridge": "^5.2",
@@ -32,7 +33,6 @@
3233
"php-http/message-factory": "^1.0.2",
3334
"symfony/console": "^4.4.20 || ^5.2.5",
3435
"symfony/twig-bridge": "^4.4.20 || ^5.2.5",
35-
"symfony/asset": "^4.4.20 || ^5.2.4",
3636
"symfony/dependency-injection": "^4.4.20 || ^5.2.5",
3737
"symfony/web-profiler-bundle": "^4.4.20 || ^5.2.4",
3838
"matthiasnoback/symfony-dependency-injection-test": "^4.1",

phpstan.neon.dist

+2
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@ parameters:
1717
- Service
1818
- Translator
1919
- Twig
20+
ignoreErrors:
21+
- '#Call to an undefined static method Symfony\\Component\\Intl\\Intl::getLocaleBundle\(\)\.#'

0 commit comments

Comments
 (0)