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 3a18446 commit f9f183aCopy full SHA for f9f183a
src/Composer/FixWpStubs.php
@@ -13,7 +13,8 @@ class FixWpStubs
13
14
public static function php73Polyfill(Event $event): int
15
{
16
- if (! class_exists('\Symfony\Polyfill\Php73\Php73')) {
+ // Bail out if PHP version is lower than 7.3 and Symfony polyfill is not present.
17
+ if (-1 === version_compare(PHP_VERSION, '7.3') && ! class_exists('\Symfony\Polyfill\Php73\Php73')) {
18
return 0;
19
}
20
0 commit comments