fosstodon.org is one of the many independent Mastodon servers you can use to participate in the fediverse.
Fosstodon is an invite only Mastodon instance that is open to those who are interested in technology; particularly free & open source software. If you wish to join, contact us for an invite.

Administered by:

Server stats:

8.8K
active users

#Phpstan

4 posts4 participants0 posts today
Lukas Rotermund<p>PHP is when you spend eight hours mapping a dynamic OOP query structure into an array structure so that an external library can read it. However, today, PHPStan 1.12.28 required me to specify the array value EXACTLY. Yet it doesn't support the necessary circular dependencies by its `@phpstan-type`... 👏 </p><p>This is why I sometimes need a three-week vacation from PHP; otherwise, I'll burn out.</p><p>What remains? Delete all type definitions, and then exclude each resulting phpstan error individually. Awesome! More wasted time!</p><p>And of course some after-work Golang :go: to keep me sane.</p><p><a href="https://social.tchncs.de/tags/PHP" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PHP</span></a> <a href="https://social.tchncs.de/tags/PHPStan" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PHPStan</span></a></p>
PHPStan<p>New release: PHPStan 2.1.19 <a href="https://github.com/phpstan/phpstan/releases/tag/2.1.19" 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.19</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>We recently hit a production problem because dead code detection did not work like expected</p><p>until now <a href="https://phpc.social/tags/phpstan" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>phpstan</span></a> only saw unreachable code after always terminating statements</p><p>took me a while, but fixed dead code detection to check expressions - available in the upcoming release</p>
Cees-Jan Kiewiet :rp: :wm:<p>The PHPStan elePHPants arrived today 🎉 ! Well done <span class="h-card" translate="no"><a href="https://phpc.social/@OndrejMirtes" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>OndrejMirtes</span></a></span>!</p><p><a href="https://toot-toot.wyrihaxim.us/tags/PHP" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PHP</span></a> <a href="https://toot-toot.wyrihaxim.us/tags/ElePHPants" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ElePHPants</span></a> <a href="https://toot-toot.wyrihaxim.us/tags/PHPStan" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PHPStan</span></a> <a href="https://toot-toot.wyrihaxim.us/tags/ElePHPant" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ElePHPant</span></a> <a href="https://toot-toot.wyrihaxim.us/tags/blue" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>blue</span></a></p>
PHPStan<p>New release: PHPStan 2.1.18 <a href="https://github.com/phpstan/phpstan/releases/tag/2.1.18" 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.18</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.28 <a href="https://github.com/phpstan/phpstan/releases/tag/1.12.28" 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.28</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>boom 💥 </p><p><a href="https://phpc.social/tags/phpstan" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>phpstan</span></a></p>
Ampache<p>Ampache 7.7.0: 995 errors, 1987 files</p><p>The lowest issue count we&#39;ve ever had and massive increase in quality all thanks to <a href="https://fosstodon.org/tags/phpstan" class="mention hashtag" rel="tag">#<span>phpstan</span></a></p>
graste<p>„Static Typing for the AWS SDK for PHP“ <a href="https://social.vivaldi.net/tags/phpstan" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>phpstan</span></a><br><a href="https://chrastecky.dev/programming/static-typing-for-the-aws-sdk-for-php" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">chrastecky.dev/programming/sta</span><span class="invisible">tic-typing-for-the-aws-sdk-for-php</span></a></p>
markus staab<p><a href="https://phpc.social/tags/phpstan" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>phpstan</span></a> rule of the day:</p><p>implemented a very naive rule which just checks the content of files and counts single quotes, double quotes and parenthesis.</p><p>in 98% of the files this should be a even number.<br>if not you likely found invalid html, sql, javascript, php, strings,.. :)</p>
DCoder 🇱🇹❤🇺🇦<p>Hm. <a href="https://ohai.social/tags/Phpstan" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Phpstan</span></a> really doesn’t like it when I make an abstract Doctrine repo for an interface:</p><p>/**<br> * @template TEntity of SomeInterface<br> * @extends ServiceEntityRepository&lt;TEntity&gt;<br>*/<br>abstract class SomeClass …</p><p>leads to an internal phpstan error. ☠️</p><p>If turning that base into a trait solves it, I’m going to be 🫠.</p>
Progi1984<p><span class="h-card" translate="no"><a href="https://piaille.fr/@nicosomb" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>nicosomb</span></a></span> 🫂 C'était un financement participatif qui date d'il y a un an ou deux. </p><p>Et bientôt il y a celui de <a href="https://piaille.fr/tags/phpstan" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>phpstan</span></a> qui arrive.</p>
Anthony, of course<p>The <a href="https://bitbang.social/tags/PHPStan" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PHPStan</span></a> <a href="https://bitbang.social/tags/Elephpant" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Elephpant</span></a> has joined the herd. Love the attention to detail! Thanks <span class="h-card"><a href="https://phpc.social/@OndrejMirtes" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>OndrejMirtes</span></a></span></p><p><a href="https://bitbang.social/tags/PHP" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PHP</span></a></p>
Derick Rethans<p>Another one for the herd! Welcome to your new home, Stan.</p><p>Thanks for the adoption opportunity <span class="h-card" translate="no"><a href="https://phpc.social/@OndrejMirtes" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>OndrejMirtes</span></a></span> !</p><p><a href="https://phpc.social/tags/elephpant" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>elephpant</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/Phpstan" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Phpstan</span></a></p>
Helmut Hummel 🐝<p><a href="https://phpstan.org/r/6b9bdd7e-8fc3-4200-9dfa-ed7b29f6e41e" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">phpstan.org/r/6b9bdd7e-8fc3-42</span><span class="invisible">00-9dfa-ed7b29f6e41e</span></a></p><p>Any idea what <a href="https://chaos.social/tags/phpstan" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>phpstan</span></a> is complaining about here? <a href="https://chaos.social/tags/php" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>php</span></a> </p><p>I don't get it.</p>
Rolf den Hartog :php:<p>And thank you <span class="h-card" translate="no"><a href="https://phpc.social/@OndrejMirtes" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>OndrejMirtes</span></a></span> for such a fantastic tool! <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>
Seb Collado<p>New addition to the <a href="https://framapiaf.org/tags/elephpant" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>elephpant</span></a> herd! Many Thanks <span class="h-card" translate="no"><a href="https://phpc.social/@OndrejMirtes" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>OndrejMirtes</span></a></span> ! <a href="https://framapiaf.org/tags/phpstan" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>phpstan</span></a></p>
Michael T<p>thanks <a href="https://phpc.social/tags/phpstan" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>phpstan</span></a> <span class="h-card" translate="no"><a href="https://phpc.social/@OndrejMirtes" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>OndrejMirtes</span></a></span> for the new <a href="https://phpc.social/tags/elephpant" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>elephpant</span></a> member to my herd 🤩 <a href="https://phpc.social/tags/php" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>php</span></a></p>
Martin Herndl<p>I got this today <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/elephpant" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>elephpant</span></a> 😊</p>
DCoder 🇱🇹❤🇺🇦<p>I wonder if it’s possible to write a <a href="https://ohai.social/tags/Phpstan" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Phpstan</span></a> rule that flags “hey dumbass, your <a href="https://ohai.social/tags/Symfony" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Symfony</span></a> container makes a compile-time decision based on an env var”. I just spent half an hour explaining to a coworker why that approach doesn’t work.</p>