Skip to content

Add Polyfil function support#1674

Merged
TomasVotruba merged 1 commit intomasterfrom
polyfil
Jul 2, 2019
Merged

Add Polyfil function support#1674
TomasVotruba merged 1 commit intomasterfrom
polyfil

Conversation

@TomasVotruba
Copy link
Copy Markdown
Member

Closes #1650

@TomasVotruba TomasVotruba changed the title Add Polyfil Add Polyfil function support Jul 2, 2019
@TomasVotruba
Copy link
Copy Markdown
Member Author

Cc @@stloyd

@TomasVotruba TomasVotruba merged commit cbece79 into master Jul 2, 2019
@TomasVotruba TomasVotruba deleted the polyfil branch July 2, 2019 20:08

private function shouldSkip(): bool
{
if ($this->isAtLeastPhpVersion('7.3')) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Shouldn't those check be opposite?

You can have polyfill with that method on even PHP 7.0, so first it should check for polyfill/method availability, then check PHP version, no?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

You're right of course!

Care for you PR?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[PHP] for new version code verify both version and polyfil

2 participants