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

Do you need help with #PHPStan in some form?

I have plenty of experience in contributing changes to PHPStan core, or implementing custom extensions.

https://staabm.github.io/2024/01/01/phpstan-customizing.html

plz RT

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

check your sql queries like a boss. resultset type inference included.

next level static analysis - using the #phpstandba extension for #phpstan

Supports doctrineproject
DBAL, PDO, mysqli with MySQL/MariaDB and PostgreSQL.

https://github.com/staabm/phpstan-dba

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

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

Published a new #phpstan #extension which makes it possible to declare expiration dates for your code comments.

as soon as the comment expires a PHPStan error will show up

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

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

🎄Early christmas present 🎁

The latest #PHPStan #todoby releaes contains composer.lock based expiration for "php" and userland packages.

More stuff is in the working. please consider sponsoring.

https://staabm.github.io/2023/12/17/phpstan-todo-by-published.html

DaveLiddament, to random

PHP's ecosystem is amazing. With tools like #phpstan you can create new language features.

The #[NamespaceVisibility] attribute limits the visibility of the method to code in the same namespace.

See https://github.com/DaveLiddament/php-language-extensions#namespacevisibility

PHPStan extension: https://github.com/DaveLiddament/phpstan-php-language-extensions

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

@ufried is talking about sustainability in IT at #unkonf.

This really reminds me of my main motiviation to improve performance in #opensource static analysis tooling like #phpstan and #rectorphp

„We expect this changes to considerably reduce the amount of energy used in CI pipelines. So that’s my take on saving the planet and don’t waste energy.“

See https://staabm.github.io/2022/12/23/phpstan-speedzember.html

… or any other post in my #performance series https://staabm.github.io/archive.html#performance

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).

shochdoerfer, to random
@shochdoerfer@phpc.social avatar

The next @phpugffm meetup in May will be awesome!

With @DaveLiddament & @markusstaab we have top-notch #PHPStan knowledge in da house. Ask all your hard PHPStan questions, and our experts will try their best to answer ;)

Sign up here https://www.phpugffm.de/veranstaltungen-2/phpugffm-iii-2023/

dpc_ibuildings, to random

Workshop announcement 📢

Ondrej Mirtes will be hosting a in-depth session on "Getting the Most Out of PHPStan'' at #dpc24. Don't miss this opportunity to learn about #PHPStan and improve your code quality. Check the schedule 👉 https://phpconference.nl

ultimike, (edited ) to drupal
@ultimike@drupal.community avatar

How about a new episode of the @drupaleasy podcast with @mglaman talking about #phpstan and his #drupal Retrofit project?

https://www.drupaleasy.com/podcast/2023/07/drupaleasy-podcast-s15e3-matt-glaman-phpstan

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

Just put togehter everything I know about the #phpstan result cache in a new blog post.

You will find a few usage examples and tipps about common pitfalls.

https://staabm.github.io/2023/10/21/phpstan-result-cache-gotchas.html

ultimike, to drupal
@ultimike@drupal.community avatar

Anything that increases the adoption rate of #PhpStan in the #drupal community is a huge +1 from me.

https://mglaman.dev/blog/playground-test-drupal-code-phpstan-drupal-coming-soon

Thanks, @mglaman!

si, to drupal

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

syntaxseed, to php
@syntaxseed@phpc.social avatar

Developer folks....

If you want to describe that a project has been fixed for all the errors found by a static analysis tool up to a certain level, how would you say it?

Ex:
"This project is ______ for #PHPStan level 6."

  • fixed
  • valid
  • passing
  • correct
  • ?

#PHP #TechDocs

OndrejMirtes, to random
@OndrejMirtes@phpc.social avatar

London here I come! ✈️🐘 @phpukconference

t3muc, to php German
@t3muc@typo3.social avatar

Am Dienstag, 12. Februar, geht es um 19 Uhr um das Thema Projektübernahmen und -updates.
@danielsiepmann zeigt uns, wie eine Übernahme gelingt und wie man das Projekt anschließend aktualisiert. Dabei gehts dann auch um Themen wie , Linting, Testing mit @phpunit und Tools wie @phpstan oder .

➡️ https://www.meetup.com/de-DE/munich-typo3-user-group/events/298927902/

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

Pushed a new #phpstan #baseline analysis release which supports filtering a baseline file.

that way you can focus your dev-teams effort on certain error classes.

as usual, you can use the tool to keep track of your progress.

https://staabm.github.io/2023/10/30/phpstan-filter-baseline.html

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

#php #phpstan

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

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

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

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

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

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