You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Warning: Undefined array key "" in /app/vendor/slevomat/coding-standard/SlevomatCodingStandard/Sniffs/Classes/ConstantSpacingSniff.php on line 61
Warning: Trying to access array offset on value of type null in /app/vendor/slevomat/coding-standard/SlevomatCodingStandard/Sniffs/Classes/ConstantSpacingSniff.php on line 61
It seems to be triggered by an enum class with a const. In my case it was something like this:
enum A: string
{
publicconstX = [
self::A,
self::B,
];
case A = 'a';
case B = 'b';
}
The text was updated successfully, but these errors were encountered:
1 | ERROR | [ ] An error occurred during processing; checking has been aborted. The error message was: Undefined array
| | key "" in
| | /Users/alies/code/IxDF/IxDF-web/vendor/slevomat/coding-standard/SlevomatCodingStandard/Sniffs/Classes/ConstantSpacingSniff.php
| | on line 62 (Internal.Exception)
I got this warning:
It seems to be triggered by an enum class with a const. In my case it was something like this:
The text was updated successfully, but these errors were encountered: