Skip to content

[Bugfix] IsCountableRector & IsIterableRector should first check method availability#1677

Merged
TomasVotruba merged 2 commits intorectorphp:masterfrom
stloyd:patch-1
Jul 4, 2019
Merged

[Bugfix] IsCountableRector & IsIterableRector should first check method availability#1677
TomasVotruba merged 2 commits intorectorphp:masterfrom
stloyd:patch-1

Conversation

@stloyd
Copy link
Copy Markdown
Contributor

@stloyd stloyd commented Jul 3, 2019

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

@TomasVotruba
Copy link
Copy Markdown
Member

CI is failing. Could you look at it?

Comment thread packages/Php/tests/Rector/BinaryOp/IsCountableRector/IsCountableRectorTest.php Outdated
Comment thread packages/Php/tests/Rector/BinaryOp/IsCountableRector/Fixture/fixture71.php.inc Outdated
Comment thread packages/Php/tests/Rector/BinaryOp/IsCountableRector/IsCountableRectorTest.php Outdated
Comment thread packages/Php/tests/Rector/BinaryOp/IsCountableRector/IsCountableRectorTest.php Outdated
Comment thread packages/Php/tests/Rector/BinaryOp/IsIterableRector/Fixture/fixture70.php.inc Outdated
@TomasVotruba
Copy link
Copy Markdown
Member

Thanks for quick response!

There is one more issue on Travis with lowest dependencies: https://travis-ci.org/rectorphp/rector/jobs/553693071#L658

This is how you replicate on local machine:

composer update --prefer-lowest
vendor/bin/phpunit

@TomasVotruba
Copy link
Copy Markdown
Member

Thank you 👍

@TomasVotruba TomasVotruba merged commit e0510f6 into rectorphp:master Jul 4, 2019
@stloyd stloyd deleted the patch-1 branch July 4, 2019 06:46
TomasVotruba added a commit that referenced this pull request Jan 14, 2022
rectorphp/rector-src@a17759c [Php74] Mirror comment on Closure return to ArrowFunction expr on ClosureToArrowFunctionRector (#1677)
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.

2 participants