We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c2760f commit d0fbaf9Copy full SHA for d0fbaf9
build/target-repository/bootstrap.php
@@ -1,8 +1,9 @@
1
<?php
2
3
-declare(strict_types = 1);
+declare(strict_types=1);
4
5
use PHPParser\Node;
6
+use PHPUnit\Runner\Version;
7
8
/**
9
* The preload.php contains 2 dependencies
@@ -18,6 +19,10 @@
18
19
20
// no need to preload if Node interface exists
21
&& ! interface_exists(Node::class, false)
22
+
23
+ // ensure force autoload version with class_exists() with true argument as not yet loaded
24
+ // for phpunit 12+ only
25
+ && class_exists(Version::class, true) && (int) Version::id() >= 12
26
) {
27
require_once __DIR__ . '/preload.php';
28
}
0 commit comments