rskuipers/php-assumptions
PHP Assumptions is a static analysis tool that detects hidden assumptions in your code, like variables used without guarantees about their type or existence. It reports each assumption, helping you catch risky spots and improve type safety. Runs via Composer and CLI.
php-assumptions statically analyzes PHP source code to detect the implicit assumptions it makes about variables, parameters and return values — type checks, comparisons and null guards — and turns them into documented type information.
By reading conditions and assignments, the library infers what your code expects, helping generate accurate docblocks, improve IDE support, and feed documentation or analysis tools.
@param, @return and @var annotationsHow can I help you explore Laravel packages today?