About plugin

The plugin helps Psalm to understand Laravel’s code (which uses a lot of magic) better. There are 2 main ways how it does it:

  • easy: by providing stub files (you can find them in /stubs dir)
  • medium+: using custom Handlers (see /src/Handlers dir)

Documentation

Troubleshooting

composer require fails with a PHP platform conflict

If Composer reports that vimeo/psalm needs php ~8.3.16 (or ~8.4.3, ~8.5.0) while your project has a lower config.platform.php pinned (for example 8.3.0), raise the platform patch level:

"config": { "platform": { "php": "8.3.16" } }

Psalm intentionally excludes PHP 8.3.0 through 8.3.15 because of Fiber and JIT bugs in those early patch releases. Staying on the same minor version is enough. Your require.php constraint does not need to change.


This site uses Just the Docs, a documentation theme for Jekyll.