Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing doc block error - undefined array key of -1 #1

Open
rakibabu opened this issue Nov 9, 2022 · 1 comment
Open

Missing doc block error - undefined array key of -1 #1

rakibabu opened this issue Nov 9, 2022 · 1 comment

Comments

@rakibabu
Copy link

rakibabu commented Nov 9, 2022

Magento version: 2.4.5-p1
Hyva version: 1.2.0-beta2
Hyva coding standard version: 1.0.1

When running the php code standards, the sniffer is giving an error. If I add doc blocks to my interface the error is gone.

FILE: /Api/Actions/Orders/CreateOrderActionInterface.php
-------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------
 1 | ERROR | An error occurred during processing; checking has been aborted. The error message was: Undefined array key
   |       | -1 in /vendor/squizlabs/php_codesniffer/src/Files/File.php on line
   |       | 2183

I think a better error message would help more people to fix these issues faster.

Kind regards,

Rakibabu

@Vinai
Copy link
Contributor

Vinai commented Jan 4, 2023

Can you run the Magento coding standard on your interface without error?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants