Skip to content

Commit a56cb3d

Browse files
committed
cs
1 parent 4897cde commit a56cb3d

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

preload-split-package.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,13 @@
99
// edge case during Rector tests case, happens when
1010
// 1. phpstan autoload test case is triggered first,
1111
// 2. all php-parser classes are loaded,
12-
if (defined('PHPUNIT_COMPOSER_INSTALL') && class_exists(\PHPStan\Testing\PHPStanTestCase::class, false) && interface_exists(\PhpParser\Node::class, false)) {
12+
if (defined('PHPUNIT_COMPOSER_INSTALL') && class_exists(
13+
\PHPStan\Testing\PHPStanTestCase::class,
14+
false
15+
) && interface_exists(
16+
\PhpParser\Node::class,
17+
false
18+
)) {
1319
return;
1420
}
1521
require_once __DIR__ . '/../../../vendor/nikic/php-parser/lib/PhpParser/Node.php';

preload.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,13 @@
99
// edge case during Rector tests case, happens when
1010
// 1. phpstan autoload test case is triggered first,
1111
// 2. all php-parser classes are loaded,
12-
if (defined('PHPUNIT_COMPOSER_INSTALL') && class_exists(\PHPStan\Testing\PHPStanTestCase::class, false) && interface_exists(\PhpParser\Node::class, false)) {
12+
if (defined('PHPUNIT_COMPOSER_INSTALL') && class_exists(
13+
\PHPStan\Testing\PHPStanTestCase::class,
14+
false
15+
) && interface_exists(
16+
\PhpParser\Node::class,
17+
false
18+
)) {
1319
return;
1420
}
1521
require_once __DIR__ . '/vendor/nikic/php-parser/lib/PhpParser/Node.php';

0 commit comments

Comments
 (0)