-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
/
patch-types.php
33 lines (25 loc) · 1.58 KB
/
patch-types.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
$prefix = 'Symfony\\';
putenv('SYMFONY_PATCH_TYPE_DECLARATIONS=force=1&php71-compat=0&class-prefix='.$prefix);
require __DIR__.'/../.phpunit/phpunit-8.3-0/vendor/autoload.php';
$loader = require __DIR__.'/../vendor/autoload.php';
Symfony\Component\ErrorHandler\DebugClassLoader::enable();
foreach ($loader->getClassMap() as $class => $file) {
switch (true) {
case 0 !== strpos($class, $prefix):
case 0 === strpos($class, 'Symfony\Polyfill\\'):
case 0 === strpos($class, 'Symfony\Component\Security\Acl\\'):
case false !== strpos($file, '/symfony/phpunit-bridge/'):
case false !== strpos($file, '/src/Symfony/Bridge/PhpUnit/'):
case false !== strpos($file, '/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Validation/Article.php'):
case false !== strpos($file, '/src/Symfony/Component/Config/Tests/Fixtures/BadParent.php'):
case false !== strpos($file, '/src/Symfony/Component/DependencyInjection/Tests/Compiler/OptionalServiceClass.php'):
case false !== strpos($file, '/src/Symfony/Component/DependencyInjection/Tests/Fixtures/ParentNotExists.php'):
case false !== strpos($file, '/src/Symfony/Component/DependencyInjection/Tests/Fixtures/Prototype/BadClasses/MissingParent.php'):
case false !== strpos($file, '/src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/'):
case false !== strpos($file, '/src/Symfony/Component/VarDumper/Tests/Fixtures/NotLoadableClass.php'):
continue 2;
}
class_exists($class);
}
Symfony\Component\ErrorHandler\DebugClassLoader::disable();