Open kilgaloon opened 7 years ago
Hey! Can you submit related code for tests? Thanks
@Kilgaloon
Autoload of lumen-framework/composer.json
contains src/helpers.php
.
Is it an error indication of a function in this file?
Yes, those helpers aren't registered by phpsa and they are reported as function does not exists.
This is very irritating problem with any project that have this kind of global functions. Basically for lumen or laravel applications you get tons of notices. @ovr @ddmler Any thoughts about this?
@Kilgaloon There is a precompile step inside PHPSA, all functions inside director are visible to any scope, I think it's an NS issue related latest changes like https://github.com/ovr/phpsa/commit/63d2b1f5013cd779d70507ee0acbc53d8b46470f
Or it's a problem related that, function is inside if expression
Same problem for Thinkphp applications;
I noticed that analyzer reports [language-error] when objects are invoked with error that function does not exists. This errors can be noticed at large numbers in Laravel/Lumen.
Sorry for edits, i pressed enter mid typing