running #phpstan on #php 8.5.x will be up to ~10% faster thanks to recent fixes by nielsdos on php-src
collaboration with him already paid off :-)
see my benchmark at
https://github.com/php/php-src/pull/18273#issuecomment-2815265546

running #phpstan on #php 8.5.x will be up to ~10% faster thanks to recent fixes by nielsdos on php-src
collaboration with him already paid off :-)
see my benchmark at
https://github.com/php/php-src/pull/18273#issuecomment-2815265546
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
PHPStan remembered types from constructor. #PHPstan
Posted into SYMFONY FOR THE DEVIL @symfony-for-the-devil-mobileatom
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
A project where running #phpstan surpasses the allowed memory size of around 130MB. This is going to be interesting.
- "My library has 100% code coverage!"
- "How so?"
- "Because I test thoroughly"
* opens editor *
* CTRL+F *
* @phpstan-ignore-line *
* Found 587 occurrences *
Today I've been updating the Site Settings module on a Drupal project from the unsupported 8.x-1.x brach to the latest 2.0.2 version.
It's used in various custom modules on this project to inject settings needed for the module, so I needed to fix breaking changes in multiple places.
This was expected as it was a major version update and could contain breaking changes.
But this was so much easier because we'd written automated tests and used static analysis (PHPStan).
創建怪異有趣的 PHPStan 規則,就好像沒有人在看
➤ 製作屬於你自己的 PHPStan 規則!
✤ https://tomasvotruba.com/blog/create-weird-fun-phpstan-rules/
想要玩得更有趣?為你的本地專案創建自訂的 PHPStan 規則吧!這項創舉充滿樂趣與實用,並且可以持續提升專案價值。
+ 真是個有趣又創意的方式來提升程式碼品質與價值。
+ 自定義 PHPStan 規則不僅樂趣無窮,還能讓專案更規範安全。
#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
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