markusstaab, to random German
@markusstaab@phpc.social avatar

Contributed another bunch of fixes in the todays #phpstan release.

enjoy.

markusstaab, to random German
@markusstaab@phpc.social avatar

Todays #phpstan release contains numerous fixes and improvements.

Please consider supporting my open source work:
https://github.com/sponsors/staabm

phpugmrn, to random German
@phpugmrn@phpc.social avatar
markusstaab, to random German
@markusstaab@phpc.social avatar

Todays #phpstan #todoby release adds support for full github urls as a out-of-the box format.

In contrast to previously supported issue trackers, it works without additional configuration right after extension was installed.

Additionally we now support XXX and FIXME comments.

see https://github.com/staabm/phpstan-todo-by/releases/tag/0.1.26

markusstaab, (edited ) to random German
@markusstaab@phpc.social avatar

My #phpstan extension #todoby recently crossed 150 stars.

it allows you to put expiration on your code comments.
a comment can expire by e.g. a github, jira or youtrack issue-url. expiration dates and composer version constraints also work.

give it a shot :)

https://github.com/staabm/phpstan-todo-by

ramsey,
@ramsey@phpc.social avatar

@markusstaab @shochdoerfer Fair enough. I see it more as a style issue than a code analysis issue, but either way, I love the feature. Thanks!

markusstaab,
@markusstaab@phpc.social avatar
markusstaab, (edited ) to random German
@markusstaab@phpc.social avatar

I am working on some really cool type improvements for preg_match() in #phpstan for a few days.

Fingers crossed the changes are acceptable 😅

OndrejMirtes, to random
@OndrejMirtes@phpc.social avatar

When I find an easy fix for a bug I thought was unfixable for 3 years… #phpstan

Vibing White Cat GIF

herndlm,
@herndlm@phpc.social avatar

@OndrejMirtes you also did the

"First make the change easy, then make the easy change."

again, didn't you? 😊 I learned that quote from you and must have told my colleagues already like 3 times 😅

markusstaab, (edited ) to random German
@markusstaab@phpc.social avatar

Todays #phpstan 1.11.0 release alone contains 11 contributions of mine:

  • some new side-effect rules
  • type narrowing improvements
  • signature improvements
  • internal cleanups

If this tool is vital for your daily job, please sponsor my freetime work or spread the word (tell your boss).

markusstaab, (edited ) to Laravel German
@markusstaab@phpc.social avatar

Today I collaborated with ondrey on a fix for #phpstan which improves a previous performance fix, which caused perf regressions in a #laravel edge-case.

The new fix allows a 2-3 seconds instead of 2-3 minutes analysis in all mentioned cases.

Reported issue was https://github.com/phpstan/phpstan/issues/10979

markusstaab, to random German
@markusstaab@phpc.social avatar

its profilling time again. try to squeeze out more in edge-case.

most annoying part is that running in this cases means you need to wait 10-15 minutes until the recording is done.

Already found a way to make it 37% faster: https://github.com/phpstan/phpstan-src/pull/3059

still investigating

PHPCSFixer, to random
@PHPCSFixer@phpc.social avatar

📢 NEW RELEASE!

Fixer v3.55 brings brand new ordered_attributes rule that extends our support for #PHP8 😁. There are also multiple internal improvements, as we bumped #PHPStan level to 7 and fixed several reported issues.

https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/releases/tag/v3.55.0

sebastian,
@sebastian@phpc.social avatar

@PHPCSFixer Yay! for ordered attributes.

markusstaab, to NextLevel German
@markusstaab@phpc.social avatar

In the next #PHPStan release, type inference for #mysqli fetch-object will be improved:

https://phpstan.org/r/e39f231d-b5b2-438c-a355-cf3c4ee8fbce

If you need #nextlevel database access static analysis try #phpstandba

overview: https://staabm.github.io/talks/phpstan-

ultimike, to drupal
@ultimike@drupal.community avatar

Upgrading existing Drupal 10 sites to PHP8.3 is a really, really, really good idea at this point in time. Luckily, the #drupal community has great tools like #phpstan to help us along.

https://buff.ly/49EjGQR

markusstaab, to random German
@markusstaab@phpc.social avatar

I have a feeling, the #phpstan 1.11.x will be pure gold (pun intended)

markusstaab, to random German
@markusstaab@phpc.social avatar

Todays #PHPStan release contains my fixes regarding a few "uninitialized readonly property" false positives.

Additionally I contributed type improvements on increment/decrement operator usage with numeric-string

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • osvaldo12
  • DreamBathrooms
  • mdbf
  • InstantRegret
  • ngwrru68w68
  • magazineikmin
  • everett
  • thenastyranch
  • Youngstown
  • slotface
  • cisconetworking
  • kavyap
  • ethstaker
  • JUstTest
  • modclub
  • GTA5RPClips
  • khanakhh
  • tacticalgear
  • Durango
  • rosin
  • normalnudes
  • Leos
  • provamag3
  • tester
  • cubers
  • anitta
  • lostlight
  • All magazines