I am trying to figure out how to utilize the scanDirectories command.
I have read the documentation
https://phpstan.org/user-guide/discovering-symbols
But there is no clear instructions on where the .neon file is to be placed in the system. So, I put the file in the conf folder in phpstan. I named it phpstan.neon. I added these lines.
includes:
- vendor/phpstan/phpstan/conf/phpstan.neon
parameters;
level: 0
scanDirectories:
- src
- library
- interface
Phpstan still shows these messages.
298 Function sqlStatement not found.
???? Learn more at https://phpstan.org/user-guide/discovering-symbols
301 Function sqlFetchArray not found.
???? Learn more at https://phpstan.org/user-guide/discovering-symbols
These functions are located in the library folder that I put in the .neon file.
Why can’t phpstan locate the function if I have it in the configuration file?