noverify
noverify copied to clipboard
Pretty fast linter (code static analysis utility) for PHP
### Before ``` MAYBE implicitModifiers: Specify the access modifier for \B::f method explicitly at /Users/petrmakhnev/noverify/script.php:106 function f(): parent { ^ WARNING unused: Variable $a is unused (use $_ to ignore...
### Before ```php if (gettype($v) === "string") ``` ### After: ```php if (is_string($v)) ```
### Before ```php join("", []); ``` ### After: ```php implode("", []); ```
### Before ```php /* @param $str string */ function test($str){} ``` ### After: ```php function test(string $str){} ```
This is an epic issue for all related work.
**PHP Version:** 7.4.28 **OS:** Debian Buster **Run command:** ```shell php-linter check --kphp --kphp7 ``` **The minimal code in which the bug appears:** Let's say we define an abstract class and...
**PHP Version:** 8.1 **OS:** Windows 11 **Run command:** ```shell noverify.exe check --ignore-vendor --allow-disable="./*" --exclude-checks="discardExpr" --index-only-files="./tests/KC,./vendor,./api3.php" --output="reports.txt" ./KC ``` **The minimal code in which the bug appears:** ```php class Students extends...
Closes #1013