markus staab
markusstaab@phpc.social
<p>software development with passion - open-source lover, creator of staabm/phpstan-dba, excessive freetime <span class="h-card" translate="no"><a href="https://phpc.social/@phpstan" class="u-url mention">@<span>phpstan</span></a></span>, @rectorphp and <span class="h-card" translate="no"><a href="https://phpc.social/@phpunit" class="u-url mention">@<span>phpunit</span></a></span> contributor</p>
Posts
-
View post
fasten your seat belt - #phpstan 2.3.x will be a another massive step forward 🥳 we are not yet ready with it though 🤡
-
View post
see you on #phpdd next week in dresden?
-
View post
running different #PHPStan versions on #shopware 6 2.1.43: 1m 33s - takes 8.79GB memory 2.2.8: 1m 25s - takes 7,46 GB memory
-
View post
Anyone out there with a open source codebase, running #phpstan in CI takes more than 5 minutes? I would love looking into what makes it slow for you Send me a link to your CI logs RT
-
View post
@OndrejMirtes@phpc.social handed me over a list of #php-src commits to verify and contribute to the php runtime. So I started opening pull requests on the php project to improve performance of #phpstan. Lets see how it goes - wish me luck :-)
-
View post
Last week I had an idea on how we can improve efficency when #phpstan needs to work with big unions of constant types (e.g. enum with lots of caes). this had a nice impact on some example of our benchmark suite
-
View post
Since April 2026 we fixed ~280 issues on #phpstan. We implemented lots of new features and improvements along the way and made it even faster at the same time. be prepared for the next release which will do another big leap in #performance 🚀
-
View post
In case you think #phpstan is running too slow, have a look at the result of running `phpstan analyze` command with `-vv` and check whether it utilizes the result cache When the result cache is warm, it should be wicked fast in CI you likely need to persist the cache manually see https://phpstan.org/user-guide/result-cache#setup-in-continuous-integration
-
View post
#phpstan 2.2.3+ is able to detect package updates based on composer.lock. utilizing the pre-existing dependency graph, we need to re-analyze only affected files. Previously we had todo a full project analysis. contributed by @sander_scode
-
View post
We have a few really cool perf experiments running atm to get #phpstan even faster.. some of them look really promising. 🫰
-
View post
contributed to #phpstan by @zonuexe@phpc.social: PHPStan will have a better idea about purity of callables taking a callback argument. for example will `array_map($pureCb, $arr)` be considered pure: - less false positives - better dead code detection
-
View post
@OndrejMirtes had another great idea to speedup #phpstan analysis Implementing it was easier than expected :-)
-
View post
In case your daily #phpstan run takes minutes instead of seconds you likely don’t utilize the result cache. Find solutions at https://staabm.github.io/2023/10/21/phpstan-result-cache-gotchas.html
-
View post
Recently I learned that the order in which you pass options to a CLI command can have a huge perf impact on the runtime (even if it leads the same result)
-
View post
dumdidum.. 🚀 #phpstan
-
View post
yesterdays #phpstan 2.1.43 release fixes 37 issues. this means since 2.1.40 (released ~4 weeks ago) we fixed ~195 issues. fingers crossed we can keep the pace and reach our goal of pushing open issues to &lt; 1000 in the upcoming months.
-
View post
my non-scientific benchmark suggests running #PHPStan on #wordpress core, will be a lot faster starting with the next release
-
View post
It was a pleasure to work with @misterdeviling thru a lot of old #PHPStan bugs. Yesterdays release contains a massive package of fixes. while we concentrated on the maintenance parts, @OndrejMirtes could concentrate his efforts on improving DX with better docs and other nice additions.
-
View post
Achievement unlocked: crossed the 1000 commits line in @phpstan core
-
View post
I recently learned that git bisect has a &quot;run&quot; subcommand, which allows you to automate the bisect process. in a blog post I am describing how you can find a regression commit in phpstan-src. the same approach works for any git based project. https://staabm.github.io/2026/02/07/git-bisect-run.html
-
View post
Starting with #phpstan 2.1.39 in case we know constants are deprecated only in certain php versions, we no longer error about them, when used in a `if (PHP_VERSION_ID &lt; 80400) {`-like condition. see E_STRICT before PHP 8.4: https://phpstan.org/r/0dc9fe34-0c60-4254-9174-f37e910cb4cf
-
View post
I love solving puzzles.. today I found out that a #phpstan container cache invalidates when you resize your bash/shell window. also when jumping between directories using `cd`. not intentional of course. lets see what we can do about that.
-
View post
TIL: your github action might fail because of a overlong command line, which gets cut without further notice. Not sure its a #php or #windows or #githubactions effect. 1:1 the same command works on a ubuntu based github action without error
-
View post
@zimzat@mastodon.social not sure what you mean. I have written plenty of extensions without such a problem. Might be specific to a certain extension. If reproducible please file a issue