The stubs are generated directly from the dolibarr sources using [dolibarr-stubs] tools (https://github.com/rycks/dolibarr-stubs).
Include stubs in PHPStan configuration file.
parameters:
scanDirectories:
- /your_path/dolibarr-stubs-all/dolibarr-18/
excludePaths:
analyse:
- /your_path/dolibarr-stubs-all/dolibarr-18/
Please consider supporting this work.
https://cap-rel.fr/services/soutien-rd/
Thank you!