Skip to content

Commit 89bd60e

Browse files
authored
Add verify PHPUnit 12+ on bootstrap.php (rectorphp#7502)
1 parent 6658d75 commit 89bd60e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

build/target-repository/bootstrap.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222

2323
// load preload.php on local PHPUnit installation
2424
&& ! class_exists(Version::class, false)
25+
26+
// load preload.php only on PHPUnit 12+
27+
&& class_exists(Version::class, true) && (int) Version::id() >= 12
2528
) {
2629
require_once __DIR__ . '/preload.php';
2730
}

0 commit comments

Comments
 (0)