Skip to content

Commit de43725

Browse files
Merge branch '8.5' into 9.5
2 parents a14340e + d5bcfa4 commit de43725

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build/templates/binary-phar-autoload.php.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env php
22
<?php
3-
if (substr(PHP_VERSION, 0 - strlen('-(to be removed in future macOS)')) === '-(to be removed in future macOS)') {
3+
if (!version_compare(PHP_VERSION, PHP_VERSION, '=')) {
44
fwrite(
55
STDERR,
66
sprintf(

phpunit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
if (substr(PHP_VERSION, 0 - strlen('-(to be removed in future macOS)')) === '-(to be removed in future macOS)') {
12+
if (!version_compare(PHP_VERSION, PHP_VERSION, '=')) {
1313
fwrite(
1414
STDERR,
1515
sprintf(

0 commit comments

Comments
 (0)