Psalm (@psalmphp) header
Psalm (@psalmphp) profile picture

Psalm is a type-checking static analysis tool for PHP that finds bugs humans can miss, and improves code quality. Try it at https://www.teapawt.net/t.co/eBajkMPMkn

CI builds
Joined December 2018
Photo by Psalm (@psalmphp)Photo by Psalm (@psalmphp)Photo by Psalm (@psalmphp)Photo by Psalm (@psalmphp)Photo by Psalm (@psalmphp)Photo by Psalm (@psalmphp)Photo by Psalm (@psalmphp)Photo by Psalm (@psalmphp)Photo by Psalm (@psalmphp)Photo by Psalm (@psalmphp)
New in Palm 7, it detect when you inject unvalidated input into MongoDB queries: psalm.dev/r/7631291cc5
1
5
308
Psalm retweeted
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…
1
1
164
Psalm retweeted
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
2
1
166
Psalm retweeted
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
1
1
1
123
Psalm retweeted
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
1
1
104
Psalm retweeted
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
1
1
123
Psalm retweeted
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
1
1
1
108
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
1
4
133
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!
1
1
4
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
2
6
12
Me: 'Going from @psalmphp level 2 to level 1, how bad can it be?' Psalm: 533 errors found
4
2
1
22
As JetBrains we condemn the attacks taking place. Our hearts are with the Ukrainian people, including our own colleagues and their families.
195
2,298
354
15,254
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 ;)
1
10
👋 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
11
95
12
217
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)
3
6
34
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.
1
14
💖 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…
2
11
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.
2
2
19