Phpstan: Variable assignment in language construct causes error

Created on 17 Aug 2017  路  2Comments  路  Source: phpstan/phpstan

Please no discussions about the following being good or not so good style :-).

require $fileA='includeA.php';
echo $fileA;

require($fileB='includeB.php');
echo $fileB;

Result:

Undefined variable: $fileA
Undefined variable: $fileB

Thank you

bug

All 2 comments

Thanks, should be easy to fix.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lvht picture lvht  路  4Comments

SignpostMarv picture SignpostMarv  路  3Comments

hrach picture hrach  路  3Comments

dingo-d picture dingo-d  路  3Comments

dereuromark picture dereuromark  路  3Comments