mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 05:41:20 +01:00
Chauncey McAskill
0afd873787
Fix dirname return type provider
Changed: - Replaced extraction of `$dir_level` literal value to be from the NodeTypeProvider instead of from the statement; based on similar logic in `RoundReturnTypeProvider`. - Replaced `new` return type creation with `Type` method creation. - Replaced `null` return with string type. Fixed: - Typo on variable name for extracted `StatementsSource`. - Edge case where `$dir_level` is less than 1. - Broken unit tests.
…
Psalm
Psalm is a static analysis tool for finding errors in PHP applications.
Installation
To get started, check out the installation guide.
Live Demo
You can play around with Psalm on its website.
Documentation
Documentation is available on Psalm’s website, generated from the docs folder.
Interested in contributing?
Have a look at CONTRIBUTING.md.
Who made this
Built by Matt Brown (@muglug).
Maintained by Orklah (@orklah) and Bruce Weirdan (@weirdan).
The engineering team at Vimeo have provided a lot encouragement, especially @nbeliard, @erunion and @nickyr.
Languages
PHP
100%