Skip to content

Commit

Permalink
Always fix WP stubs on PHP 7.3+
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor committed Sep 17, 2019
1 parent 3a18446 commit f9f183a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Composer/FixWpStubs.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ class FixWpStubs

public static function php73Polyfill(Event $event): int
{
if (! class_exists('\Symfony\Polyfill\Php73\Php73')) {
// Bail out if PHP version is lower than 7.3 and Symfony polyfill is not present.
if (-1 === version_compare(PHP_VERSION, '7.3') && ! class_exists('\Symfony\Polyfill\Php73\Php73')) {
return 0;
}

Expand Down

2 comments on commit f9f183a

@szepeviktor
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

спасибо Павел Буриличев

@szepeviktor
Copy link
Owner Author

@szepeviktor szepeviktor commented on f9f183a Sep 20, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the star @asyazwan, BTW your meetup photos look like eat-ups :)

Please sign in to comment.