mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 13:51:54 +01:00
lhchavez
d1a42f6c69
Add
null
as a possible type parameter to strval
(#4100)
https://www.php.net/manual/en/language.types.string.php#language.types.string.casting mentions > `NULL` is always converted to an empty string. Which seems to indicate that it is a valid argument for it. As opposed to stringifying other types (like arrays), `strval(null)` does not cause a warning in PHP.
…
…
…
Psalm
Psalm is a static analysis tool for finding errors in PHP applications, built on top of PHP Parser.
It's able to find a large number of issues, but it can also be configured to only care about a small subset of those.
Try a live demo, or install it in your project by following the Quickstart Guide below.
Psalm documentation
Documentation is available on Psalm’s website, generated from the docs folder.
To get started, check out the installation guide
Interested in contributing?
Have a look at CONTRIBUTING.md.
Acknowledgements
The engineering team @vimeo for encouragement and patience, especially @nbeliard, @erunion and @nickyr.
Languages
PHP
100%