Tyson Andre

Results 313 issues of Tyson Andre

The optional native syntax check also warns about that, making it somewhat redundant. The native ast extension (for php's own parsing rules) does not currently allow it. Warn in the...

enhancement

- [x] Fix or suppress notices in Phan itself - probably better to fix - [x] Update dependencies if needed - [ ] Analyze code to emit warnings about code...

enhancement
php8.1

See if https://plugins.jetbrains.com/plugin/10209-lsp-support works - it may require updates for the betas

enhancement

https://wiki.php.net/rfc/deprecations_php_8_1

enhancement
php8.1
v5

This was apparently overlooked in the original implementation and unintentionally allowed. See https://github.com/php/php-src/pull/4829 Related to #3988 and others - Phan analyzes traits as if it's possible for code to call...

enhancement

E.g. in an html template or standalone script - A variable may be defined in one file but later stop being used anywhere - A variable may be used, but...

enhancement
dead code detection

The BlockVisitor and PreOrderAnalysisVisitor should handle this like visitClass and update the context to be the class context to get suppressions for the class constant, not the class

v5

https://github.com/phan/phan/wiki/Annotating-Your-Source-Code#assertions This should be possible if the expression for the call gets passed to the plugin

enhancement