Closed DFournierIT closed 4 months ago
Hard to tell without seeing some of the project structure and/or files. Some thoughts, though:
.
- i.e. the project root. That might include the vendor folder and probably other folders/files that are not relevant and might break things. Reducing this to the folders that do actually contain code with annotations might be enough (you can specify multiple files/folder)xxx_exists()
check. Failing this usually means there is no (or incorrect) autoloading set upHard to tell without seeing some of the project structure and/or files. Some thoughts, though:
- you are scanning
.
- i.e. the project root. That might include the vendor folder and probably other folders/files that are not relevant and might break things. Reducing this to the folders that do actually contain code with annotations might be enough (you can specify multiple files/folder)- The code in question does a
xxx_exists()
check. Failing this usually means there is no (or incorrect) autoloading set up
Appreciate your reply!
I think the first point was my issue. I changed the path to point to src/Controller (I have a CakePHP project) and it went through fine.
Command issued:
./vendor/bin/openapi . -o openapi.yaml
Error:
Error: Error: Interface "PHP_CodeSniffer\Sniffs\Sniff" not found in /var/www/html/my_app/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/Classes/ReturnTypeHintSniff.php:23
composer.json