-
# Bug report
### Code snippet that reproduces the problem
https://phpstan.org/r/21f42e37-06b4-4261-bdb2-312103ac9d22
### Expected output
No error.
-
### Bug report
See snippet. The callstack is:
```
Uncaught PHPStan\ShouldNotHappenException: Internal error. in phar:///app/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/MutatingScope.php:947
…
-
### Bug report
In the code below, the variable is completely replaced when match is succesful. Previously remebered type must be converted to maybe.
### Code snippet that reproduces the problem
…
-
# Allotment Andy | PHPStan static analysis
Writing about Debian Linux, Bash scripting , PHP, CSS, Laravel, Jigsaw Static sites, cooking, aviation and a place for general thoughts on technology.
[htt…
-
### Bug report
Variadic arguments in arrow functions appear not to be treated as arrays, whereas in the equivalent anonymous function, the same code is handled correctly.
This only seems to occur …
lkrms updated
1 month ago
-
I'm not sure if this is an issue with flycheck or the phpstan-flycheck
the other php flychecks don't run.
``` emacs-lisp
(flycheck-add-next-checker 'php 'phpstan)
```
That pretends it to the …
-
### Bug report
as requested in https://github.com/phpstan/phpstan/issues/11001#issuecomment-2111907369
### Code snippet that reproduces the problem
minimal repro repo: https://github.com/atk4…
-
Should `@return (T is static ? bool : false)` work? Here anything I try seems to evaluate `T is static` as false.
https://psalm.dev/r/59c4ae8585
As comparison, in PhpStan, it does work: https://…
-
I just finished first draft of script that uses PHPStan to satic analysis of compiled Latte templates in our projects.
One think I noticed is that {varType} or {templateType} macros does not propag…
-
### Feature request
I sometimes see PR's in my organisation where a cast to `(int)` is used to silence a PhpStan error about cases where `int|null` is passed somewhere that only allows `int`. This ha…