Phpstan: for cycle: third argument scope places before continue or the end of cycle

Created on 28 Mar 2017  路  3Comments  路  Source: phpstan/phpstan

image

image

$parent must be always defined as $parent = $this->parent(...); is executed before any continue; or the end of cycle.

php-ds/polyfill source

bug

Most helpful comment

Nice catch, fix is easy. I already touched for loop code for the 0.9 release here https://github.com/phpstan/phpstan/commit/c848ed2728bd0bcb96c4c41d4c169118dec40ab4 so I will modify it once more.

All 3 comments

Nice catch, fix is easy. I already touched for loop code for the 0.9 release here https://github.com/phpstan/phpstan/commit/c848ed2728bd0bcb96c4c41d4c169118dec40ab4 so I will modify it once more.

Was this page helpful?
0 / 5 - 0 ratings