Skip to content

Commit 6f98b3e

Browse files
committed
minor symfony#24825 Drop support for PHPUnit 4 (ostrolucky)
This PR was merged into the 4.0-dev branch. Discussion ---------- Drop support for PHPUnit 4 | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - You can no longer mock Symfony > 4.0 components, because they now use nullable type hints. PHPUnit 4 requires 2.* for phpunit-mock-objects, which don't support that. For example, it's no longer possible to mock ContainerBuilder with PHPUnit 4. This will save time debugging this issue for bundles still using PHPUnit 4. I have discovered this problem when patching KnpPaginatorBundle for Symfony 4.0. Commits ------- 4078083 Drop support for PHPUnit 4
2 parents 6a40488 + 4078083 commit 6f98b3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
"conflict": {
102102
"phpdocumentor/reflection-docblock": "<3.0||>=3.2.0,<3.2.2",
103103
"phpdocumentor/type-resolver": "<0.2.1",
104-
"phpunit/phpunit": "<4.8.35|<5.4.3,>=5.0"
104+
"phpunit/phpunit": "<5.4.3"
105105
},
106106
"provide": {
107107
"psr/cache-implementation": "1.0",

0 commit comments

Comments
 (0)