Psalm retweeted
New in Palm 7, it detect when you inject unvalidated input into MongoDB queries: psalm.dev/r/7631291cc5
Daily releases from now on: features and fixes reach you the day they land. And the team grew: @alies_dev joined the maintainer team!
Upgrading is a dependency bump away: psalm.dev/docs/running_psalm…
PHP 8.6 pipelines with partial application, fully typed:
$slug = $title |> trim(...) |> str_replace(' ', '-', ?);
// string
$title |> explode(' ', ?) |> strtolower(...);
// InvalidArgument: strtolower expects string, non-empty-list<string> given
Try it: psalm.dev/r/3c08a570e0
Template defaults for classes, functions and methods: Result<int> now means Result<int, RuntimeException>.
Libraries can add a template without breaking the types their users already wrote.
Try it: psalm.dev/r/4e21eb262e
Dead code detection on a reference graph: if nothing reachable uses it, Psalm finds it. Classes that only call each other, cycles included, and exceptions you create but never throw.
Try it: psalm.dev/r/31c62c069b
Hack-style purity: declare which side effects code may have (io, time, write-props...) and catch the "pure" function that reads the clock or edits its input.
Purity templates make array_map() and your interfaces as pure as what you pass them.
Try it: psalm.dev/r/be7eb39420
Security analysis is on by default: types, taints and dead code in one pass, on a rewritten, 10x faster taint engine.
New: NoSQL, LLM prompt and URL injection, php://input and upload names as sources, taint through closures and generators.
Try it: psalm.dev/r/7631291cc5
Psalm retweeted
Super happy to finally release the result of more than a year of work!
🔥 Psalm 7.0.0 is here!
The biggest Psalm release in years: powerful PHP security analysis in every run, a Hack-inspired purity model, graph-based dead code detection, full PHP 8.6 support and major framework plugins in the box. 🧵
github.com/vimeo/psalm/relea…
#PHP #Psalm
Psalm retweeted
Replying to @psalmphp
I've also contributed the underlying deepbind patch to upstream PHP, and it will be available for everyone to use in PHP 8.5!
github.com/php/php-src/pull/…
Psalm retweeted
Running @psalmphp on my tests code has been a good decision so far. Makes it far easier to keep tests updated. Automation for the win!
Psalm retweeted
Wrote a @psalmphp plugin to ensure I'm marking classes as final properly. If a concrete class does need to be inherited you can mark it with an Attribute to suppress the error.
#php
github.com/cspray/phinal
Psalm retweeted
Me: 'Going from @psalmphp level 2 to level 1, how bad can it be?'
Psalm: 533 errors found
Psalm retweeted
As JetBrains we condemn the attacks taking place. Our hearts are with the Ukrainian people, including our own colleagues and their families.
Psalm retweeted
Done and done. phpcs applies my coding standard consistently and psalm statically analyzes codebase to make sure all types are correct. 99.5035% type safe according to psalm.
Replying to @jwage
80% is excellent IMO.
Now just add some linting and code quality rules and you are winning at life ;)
Psalm retweeted
👋 We're hiring a Senior Software Engineer in Berlin or remote! 💻 Build high-quality supply chain tools for thousands of devs in the PHP ecosystem 🐘 with the makers of #composerphp #php #phpc
Psalm retweeted
While most of the work on Psalm is about getting it understand your code right, there's a place for UI improvements as well.
There are several that are either already shipped or coming soon:
1. Psalm now linkifies files in supporting terminals (thanks to @gregorharlan)
Psalm retweeted
Mid-October and I have earned my #hacktoberfest badge. This year with 5 PRs to @psalmphp helping them get ready for PHP 8.1.
Again this year, I have chosen the "Plant A Tree"-option. I have enough T-shirts already.
Psalm retweeted
💖 I'm sponsoring @orklah because of the awesome work for the @psalmphp project and for improving the php ecosystem. #php github.com/sponsors/orklah?s…
Psalm retweeted
Just made my first PR to @psalmphp, helping with making it ready for PHP 8.1. Looking forward to the feedback, this is new to me. Both Psalm and PHP 8.1.
And a plus, I'm trying to gain my #Hacktoberfest badge this year.
Psalm retweeted
We just release type-resolver 1.5.0 containing support for @psalmphp pseudo types and #php81!
github.com/phpDocumentor/Typ…
#php #phpc















