Really love it when on a drive-by fix #phpstan issue bot tells me "hey your fix also fixes these multi-years old bugs"
New release: PHPStan 2.1.12 https://github.com/phpstan/phpstan/releases/tag/2.1.12 #phpstan
New release: PHPStan 1.12.24 https://github.com/phpstan/phpstan/releases/tag/1.12.24 #phpstan
"Custom PHPStan Rules: Automate Standards and Save Time" will be Dave Liddament's talk at phpday25.
#phpday25 #PHP #Staticanalysis #improvement #PHPStan
--------
phpday - 22nd edition
The annual gathering for developers, professionals, and PHP enthusiasts.
The conference is powered by @gruspVerona (Italy) |
May 15-16, 2025
Tickets https://bit.ly/41J6UP3
A new #phpstan capability which will be available with the upcoming release: Remembered types from constructor
https://staabm.github.io/2025/04/15/phpstan-remember-constructor-types.html
Discussions: https://discu.eu/q/https://staabm.github.io/2025/04/15/phpstan-remember-constructor-types.html
PHPStan remembered types from constructor. #PHPstan
https://staabm.github.io/2025/04/15/phpstan-remember-constructor-types.html
As already spoilered, I have written down a small blog post for a new #phpstan capability which will be available with the upcoming release.
Remembered types from constructors.
https://staabm.github.io/2025/04/15/phpstan-remember-constructor-types.html
Hey #PHPStan enthusiasts! Is there a DI service that can be used in custom rule to resolve value of an argument passed to static method call? I did a simple implementation and it works, BUT it causes "Undefined constant" errors during analysis. Maybe there's something OOTB ?
Still working on improvements/false-positives related to list-type and possibly-non-existant-offset in #phpstan
Things get more awesome every day
"Custom PHPStan Rules: Automate Standards and Save Time" will be Dave Liddament's talk at phpday25.
#phpday25 #PHP #Staticanalysis #improvement #PHPStan
--------
phpday - 22nd edition
The annual gathering for developers, professionals, and PHP enthusiasts.
The conference is powered by @gruspVerona (Italy) |
May 15-16, 2025
Tickets https://bit.ly/41J6UP3
New release: PHPStan 2.1.11 https://github.com/phpstan/phpstan/releases/tag/2.1.11 #phpstan
New release: PHPStan 2.1.10 https://github.com/phpstan/phpstan/releases/tag/2.1.10 #phpstan
New release: PHPStan 2.1.9 https://github.com/phpstan/phpstan/releases/tag/2.1.9 #phpstan
New release: PHPStan 1.12.22 https://github.com/phpstan/phpstan/releases/tag/1.12.22 #phpstan
Does anyone know if there's an annotation I can set to tell @phpstan that `$min` is definitely less than `$max`, in this example:
Almost done with level 1 in a big, partly legacy, codebase - quite some work and deleted lines of code .
Loooking forward to level 2 and a bit of fresh air in the error messages .