You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: co-phpunit
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -9,10 +9,21 @@ declare (strict_types=1);
9
9
* For the full copyright and license information, please view the LICENSE
10
10
* file that was distributed with this source code.
11
11
*/
12
+
if (!version_compare(PHP_VERSION, PHP_VERSION, '=')) {
13
+
fwrite(STDERR, sprintf('%s declares an invalid value for PHP_VERSION.' . PHP_EOL . 'This breaks fundamental functionality such as version_compare().' . PHP_EOL . 'Please use a different PHP interpreter.' . PHP_EOL, PHP_BINARY));
14
+
die(1);
15
+
}
12
16
if (version_compare('7.3.0', PHP_VERSION, '>')) {
13
17
fwrite(STDERR, sprintf('This version of PHPUnit requires PHP >= 7.3.' . PHP_EOL . 'You are using PHP %s (%s).' . PHP_EOL, PHP_VERSION, PHP_BINARY));
0 commit comments