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

I am working on some really cool type improvements for preg_match() in 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…

Vibing White Cat GIF

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

Todays 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 which improves a previous performance fix, which caused perf regressions in a 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 #phpstan profilling time again. try to squeeze out more #performance in edge-case.

most annoying part is that running #blackfire 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 😁. There are also multiple internal improvements, as we bumped level to 7 and fixed several reported issues.

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

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

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

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

If you need database access static analysis try

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

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

I am working on improving typing in nikic/PHP-Parser so static analysis tooling can assist you better when working directly with the AST.

Also fixing CI while at it.

I started this because we ran into a edge-case fatal error in #PHPStan.

https://github.com/nikic/PHP-Parser/pull/993

stefanzweifel, to php
@stefanzweifel@phpc.social avatar

While making my PHP packages compatible with Laravel 11 the last few weeks, I've also spent some time and added PHPStan to all of them.

The more simpler ones are already on level 9. The more complex are still on level 5 or 6. I'm still a novice when it comes to proper type documentation. Goal is to increase levels throughout the year.

Links to all packages:
https://stefanzweifel.dev/projects

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

Worked on reducing overhead of to improve performance of and for projects which register a custom autoloader.

Our legacy projects autoloader which works in a include-path like fashion triggered lots of IO before.

Should be gone in next release

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

Sometimes the difference between a >2 minute and a 2 second running #phpstan analysis can just be a tiny change

https://github.com/phpstan/phpstan-src/pull/2985

OndrejMirtes, to random
@OndrejMirtes@phpc.social avatar

Sometimes I like to write silly commit messages. #phpstan

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

While #PHPStan 1.10.60 shipped with deprecations handilng for global constants, with 1.10.62 I made sure that we only report errors depending on the used php version to improve DX.

https://twitter.com/markusstaab/status/1765984217937154473

ctietze, to php
@ctietze@mastodon.social avatar

In #PHP, a language without a compiler, static checking via #PHPStan is really neat. I'm running this on the command line ever now and then to see whether I messed something up during a rename or refactoring. That's not as convenient as a type checker in an IDE like Xcode which is constantly running in the background, but it's bridging a lot of the gaps.

si, to drupal
@si@kolektiva.social avatar

Belated deep dive on , my overview of getting started with a site https://youtu.be/8al0GVuYwYY

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

Working with global constants missed some essential parts in #PHPStan.

Starting with 1.10.60 I have implemented deprecations handling.

One less weak spot on your next php-src or userland library version upgrade.

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

Anyone having the problem of accidental wrong "use" statements like

use _PHPStan_156ee64ba\Symfony\Component\String\Exception\RuntimeException;

taken from prefixed-phar files, e.g. because of bad IDE autocompletion?

Fixed it for you in #phpstan

https://phpstan.org/r/bdd5949f-b3d6-4b57-b2de-813e431b6563

kenguest, to random
@kenguest@phpc.social avatar

Has anyone else been getting this error message about after it got moved to the larastan organization?

Have to admit I fixed it by creating a symlink, but that seems inelegant.

PHPStan phpstan: File '/opt/project/./vendor/nunomaduro/larastan/extension.neon' is missing or is not readable."

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

#phpstan test-suite is now waaay faster then it was a few weeks ago

a shorter feedback loop will lead to a more enjoyable contribution experience for anyone and also should save @OndrejMirtes's sparse time.

please consider sponsoring my off-job OSS efforts

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

After tinkering with #phpunit --test-files option, I was able to parallelize the slowest #phpstan tests over several github actions.

tests finish in 4m 15s, while it takes ~10m 30s before.
fingers crossed this can be merged :-)

https://github.com/phpstan/phpstan-src/pull/2916#discussion_r1492502527

OndrejMirtes, to random
@OndrejMirtes@phpc.social avatar

London here I come! ✈️🐘 @phpukconference

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