Add PHPStan configuration for Symfony4 tests
- Created a new phpstan.neon file in the Symfony4 tests directory. - Configured paths and excluded Symfony3 directory. - Added bootstrap files for autoloading. - Set dynamic constant names and adjusted reporting settings. - Established PHPStan level to 6 for stricter analysis.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
// autoload_real.php @generated by Composer
|
||||
|
||||
class ComposerAutoloaderInit245c4a2a3c66452037dc17f6dafa78a8
|
||||
class ComposerAutoloaderInit974c010241101822312e0b9898e8be21
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
@@ -24,27 +24,16 @@ class ComposerAutoloaderInit245c4a2a3c66452037dc17f6dafa78a8
|
||||
|
||||
require __DIR__ . '/platform_check.php';
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInit245c4a2a3c66452037dc17f6dafa78a8', 'loadClassLoader'), true, false);
|
||||
spl_autoload_register(array('ComposerAutoloaderInit974c010241101822312e0b9898e8be21', 'loadClassLoader'), true, false);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit245c4a2a3c66452037dc17f6dafa78a8', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit974c010241101822312e0b9898e8be21', 'loadClassLoader'));
|
||||
|
||||
require __DIR__ . '/autoload_static.php';
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit245c4a2a3c66452037dc17f6dafa78a8::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit974c010241101822312e0b9898e8be21::getInitializer($loader));
|
||||
|
||||
$loader->setClassMapAuthoritative(true);
|
||||
$loader->register(false);
|
||||
|
||||
$filesToLoad = \Composer\Autoload\ComposerStaticInit245c4a2a3c66452037dc17f6dafa78a8::$files;
|
||||
$requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
|
||||
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
||||
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
|
||||
|
||||
require $file;
|
||||
}
|
||||
}, null, null);
|
||||
foreach ($filesToLoad as $fileIdentifier => $file) {
|
||||
$requireFile($fileIdentifier, $file);
|
||||
}
|
||||
|
||||
return $loader;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user