mastodon.online is one of the many independent Mastodon servers you can use to participate in the fediverse.
A newer server operated by the Mastodon gGmbH non-profit

Server stats:

10K
active users

#phpstan

6 posts6 participants0 posts today
markus staab<p>Sunday morning brain gymnastics again... <a href="https://phpc.social/tags/phpstan" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>phpstan</span></a> <a href="https://phpc.social/tags/edgecase" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>edgecase</span></a> <a href="https://phpc.social/tags/improvements" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>improvements</span></a></p>
markus staab<p>I am building a really cool new <a href="https://phpc.social/tags/phpstan" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>phpstan</span></a> capability right now. I need to blog about it :-)</p><p>stay tuned ⚡️</p>
Greg Korba<p>Hey <a href="https://mas.to/tags/PHPStan" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PHPStan</span></a> 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 ☺️?</p>
.:\dGh/:.<p>- "My library has 100% code coverage!"<br>- "How so?"<br>- "Because I test thoroughly"</p><p>* opens editor *</p><p>* CTRL+F *</p><p>* @phpstan-ignore-line *</p><p>* Found 587 occurrences * </p><p><a href="https://mastodon.social/tags/Programming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Programming</span></a> <a href="https://mastodon.social/tags/PHP" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PHP</span></a> <a href="https://mastodon.social/tags/PHPStan" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PHPStan</span></a> <a href="https://mastodon.social/tags/Larastan" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Larastan</span></a> <a href="https://mastodon.social/tags/Laravel" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Laravel</span></a> <a href="https://mastodon.social/tags/Symfony" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Symfony</span></a> <a href="https://mastodon.social/tags/CodeCoverage" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CodeCoverage</span></a> <a href="https://mastodon.social/tags/Coding" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Coding</span></a> <a href="https://mastodon.social/tags/Code" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Code</span></a> <a href="https://mastodon.social/tags/SoftwareDevelopment" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SoftwareDevelopment</span></a> <a href="https://mastodon.social/tags/Software" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Software</span></a> <a href="https://mastodon.social/tags/WebDevelopment" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>WebDevelopment</span></a> <a href="https://mastodon.social/tags/WebDev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>WebDev</span></a></p>
opdavies<p>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.</p><p>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.</p><p>This was expected as it was a major version update and could contain breaking changes.</p><p>But this was so much easier because we'd written automated tests and used static analysis (PHPStan).</p><p><a href="https://mastodon.social/tags/drupal" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>drupal</span></a> <a href="https://mastodon.social/tags/php" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>php</span></a> <a href="https://mastodon.social/tags/phpstan" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>phpstan</span></a></p>
eurosat7<p>I need a rule for <a href="https://mastodon.social/tags/phpstan" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>phpstan</span></a></p><p><a href="https://phpstan.org/r/50477abd-901a-48c5-a85c-1719c1156453" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">phpstan.org/r/50477abd-901a-48</span><span class="invisible">c5-a85c-1719c1156453</span></a></p><p>Any hints?</p><p>Or maybe there is an equivalent for <a href="https://mastodon.social/tags/PhpCSFixer" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PhpCSFixer</span></a> ?</p><p><a href="https://symfony-devs.slack.com/archives/C8SFXTD2M/p1744034573764059?thread_ts=1744034573.764059&amp;cid=C8SFXTD2M" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">symfony-devs.slack.com/archive</span><span class="invisible">s/C8SFXTD2M/p1744034573764059?thread_ts=1744034573.764059&amp;cid=C8SFXTD2M</span></a></p>
markus staab<p>Had a great call with php-src core developer <span class="h-card" translate="no"><a href="https://phpc.social/@nielsdos" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>nielsdos</span></a></span>.</p><p>we looked into php-src native profiles of php running <a href="https://phpc.social/tags/phpstan" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>phpstan</span></a>.</p><p>Got some inspiration regarding room for improvement to make phpstan faster. food for experiments 🔬</p>
markus staab<p>After fixing a few cases where <a href="https://phpc.social/tags/PHPStan" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PHPStan</span></a> lost the list type, I just started adding support for lists in <a href="https://phpc.social/tags/rector" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rector</span></a></p><p><a href="https://github.com/rectorphp/rector-src/pull/6820" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/rectorphp/rector-sr</span><span class="invisible">c/pull/6820</span></a></p>
Martin Herndl<p>a <a href="https://phpc.social/tags/cheatsheet" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cheatsheet</span></a> for <a href="https://phpc.social/tags/PHPStan" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PHPStan</span></a> <a href="https://phpc.social/tags/Psalm" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Psalm</span></a> <a href="https://phpc.social/tags/PHPDoc" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PHPDoc</span></a> would be neat. similar as this one for <a href="https://phpc.social/tags/TypeScript" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>TypeScript</span></a></p><p><a href="https://jasondavis.net/@jason/114269720824635092" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">jasondavis.net/@jason/11426972</span><span class="invisible">0824635092</span></a></p>
markus staab<p>Still working on improvements/false-positives related to list-type and possibly-non-existant-offset in <a href="https://phpc.social/tags/phpstan" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>phpstan</span></a></p><p>Things get more awesome every day 😎</p>
GripNews<p>🌘 創建怪異有趣的 PHPStan 規則,就好像沒有人在看<br>➤ 製作屬於你自己的 PHPStan 規則!<br>✤ <a href="https://tomasvotruba.com/blog/create-weird-fun-phpstan-rules/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">tomasvotruba.com/blog/create-w</span><span class="invisible">eird-fun-phpstan-rules/</span></a><br>想要玩得更有趣?為你的本地專案創建自訂的 PHPStan 規則吧!這項創舉充滿樂趣與實用,並且可以持續提升專案價值。<br>+ 真是個有趣又創意的方式來提升程式碼品質與價值。<br>+ 自定義 PHPStan 規則不僅樂趣無窮,還能讓專案更規範安全。<br><a href="https://mastodon.social/tags/PHPStan" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PHPStan</span></a> 規則創建</p>
phpday<p>"Custom PHPStan Rules: Automate Standards and Save Time" will be Dave Liddament's talk at phpday25.</p><p><a href="https://phpc.social/tags/phpday25" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>phpday25</span></a> <a href="https://phpc.social/tags/PHP" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PHP</span></a> <a href="https://phpc.social/tags/Staticanalysis" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Staticanalysis</span></a> <a href="https://phpc.social/tags/improvement" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>improvement</span></a> <a href="https://phpc.social/tags/PHPStan" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PHPStan</span></a></p><p>--------<br>phpday - 22nd edition<br>The annual gathering for developers, professionals, and PHP enthusiasts.<br>The conference is powered by <span class="h-card" translate="no"><a href="https://phpc.social/@grusp" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>grusp</span></a></span><br>📍Verona (Italy) | 📆 May 15-16, 2025 <br>Tickets <a href="https://bit.ly/41J6UP3" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">bit.ly/41J6UP3</span><span class="invisible"></span></a></p>
PHPStan<p>New release: PHPStan 2.1.11 <a href="https://github.com/phpstan/phpstan/releases/tag/2.1.11" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/phpstan/phpstan/rel</span><span class="invisible">eases/tag/2.1.11</span></a> <a href="https://phpc.social/tags/phpstan" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>phpstan</span></a></p>
PHPStan<p>New release: PHPStan 2.1.10 <a href="https://github.com/phpstan/phpstan/releases/tag/2.1.10" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/phpstan/phpstan/rel</span><span class="invisible">eases/tag/2.1.10</span></a> <a href="https://phpc.social/tags/phpstan" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>phpstan</span></a></p>
PHPStan<p>New release: PHPStan 1.12.23 <a href="https://github.com/phpstan/phpstan/releases/tag/1.12.23" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/phpstan/phpstan/rel</span><span class="invisible">eases/tag/1.12.23</span></a> <a href="https://phpc.social/tags/phpstan" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>phpstan</span></a></p>
PHPStan<p>New release: PHPStan 2.1.9 <a href="https://github.com/phpstan/phpstan/releases/tag/2.1.9" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/phpstan/phpstan/rel</span><span class="invisible">eases/tag/2.1.9</span></a> <a href="https://phpc.social/tags/phpstan" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>phpstan</span></a></p>
PHPStan<p>New release: PHPStan 1.12.22 <a href="https://github.com/phpstan/phpstan/releases/tag/1.12.22" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/phpstan/phpstan/rel</span><span class="invisible">eases/tag/1.12.22</span></a> <a href="https://phpc.social/tags/phpstan" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>phpstan</span></a></p>
markus staab<p>Spent a few hours this morning to improve <a href="https://phpc.social/tags/phpstan" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>phpstan</span></a> type inference for the preg_match subject capturing in $matches.</p><p>Before we only knew „string“. Now we know about non-emptiness and non-falsyness 🚀</p>
Ben Ramsey<p>Does anyone know if there's an annotation I can set to tell <span class="h-card" translate="no"><a href="https://phpc.social/@phpstan" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>phpstan</span></a></span> that `$min` is definitely less than `$max`, in this example:</p><p><a href="https://phpstan.org/r/30b3b96f-268e-4f22-b286-129f81f7dd25" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">phpstan.org/r/30b3b96f-268e-4f</span><span class="invisible">22-b286-129f81f7dd25</span></a></p><p><a href="https://phpc.social/tags/PHP" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PHP</span></a> <a href="https://phpc.social/tags/PHPStan" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PHPStan</span></a></p>
markus staab<p>Do I know anyone with a apple M1/2/3/4 Max or Ultra CPU, who could run a small benchmark for me?</p><p>I am collecting numbers on PHP 8.3 to get a better idea how hardware impacts <a href="https://phpc.social/tags/phpstan" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>phpstan</span></a> analysis runtime</p><p>see <a href="https://staabm.github.io/2024/11/17/phpstan-performance-on-different-hardware.html" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">staabm.github.io/2024/11/17/ph</span><span class="invisible">pstan-performance-on-different-hardware.html</span></a></p>