1 | <?php |
||
2 | |||
3 | /* |
||
4 | * This file is part of the FOSHttpCache package. |
||
5 | * |
||
6 | * (c) FriendsOfSymfony <http://friendsofsymfony.github.com/> |
||
7 | * |
||
8 | * For the full copyright and license information, please view the LICENSE |
||
9 | * file that was distributed with this source code. |
||
10 | */ |
||
11 | |||
12 | namespace FOS\HttpCache\Test\PHPUnit; |
||
13 | |||
14 | use PHPUnit\Framework\Constraint\Constraint; |
||
0 ignored issues
–
show
|
|||
15 | |||
16 | 1 | if (class_exists('PHPUnit_Runner_Version') && version_compare(\PHPUnit_Runner_Version::id(), '6.0.0', '<')) { |
|
0 ignored issues
–
show
The type
PHPUnit_Runner_Version was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
17 | /* |
||
18 | * Using an early return instead of a else does not work when using the PHPUnit phar due to some weird PHP behavior |
||
19 | * (the class gets defined without executing the code before it and so the definition is not properly conditional) |
||
20 | */ |
||
21 | class_alias('FOS\HttpCache\Test\Legacy\PHPUnit\AbstractCacheConstraint', 'FOS\HttpCache\Test\PHPUnit\AbstractCacheConstraint'); |
||
22 | } else { |
||
23 | /** |
||
24 | * Abstract cache constraint. |
||
25 | */ |
||
26 | abstract class AbstractCacheConstraint extends Constraint |
||
27 | { |
||
28 | use AbstractCacheConstraintTrait; |
||
29 | } |
||
30 | } |
||
31 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths