Re: Passing null to parameter
| From: | Alex Wells | Date: | Fri, 10 Nov 2023 10:54:43 +0000 |
| Subject: | Re: Passing null to parameter | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-121632@lists.php.net to get a copy of this message | ||
On Fri, Nov 10, 2023 at 12:47 PM Craig Francis <craig@craigfrancis.co.uk>
wrote:
> This will start getting Fatal Type Errors in 9.0... and finding these
> "mistakes" is close to impossible (phpstan doesn't find them; psalm
> requires high levels 1-3)
>
PHPStan does find them:
https://phpstan.org/r/38fc1545-2567-49b9-9937-f275dcfff6f5
Finding these mistakes is easy if you either have tests or use static
analysis tools.