website/errors/function.notFound.md
<?php declare(strict_types = 1);
echo undefinedFunction();
The code calls a function that PHPStan cannot find. This usually means the function does not exist, is misspelled, or is defined in a file that PHPStan does not scan (such as a conditionally loaded file or an extension stub).
If the function name is a typo, correct it:
<?php declare(strict_types = 1);
-echo aray_merge([1], [2]);
+echo array_merge([1], [2]);
If the function is defined elsewhere, make sure PHPStan can discover it by including the file in scanFiles or scanDirectories:
parameters:
scanFiles:
- functions.php
If the function comes from a PHP extension, make sure PHPStan knows about it by adding the appropriate extension stubs.