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
Ignore the IncorrectWhitespaceBeforeDeclare error emitted by the SlevomatCodingStandard.TypeHints.DeclareStrictTypes sniff.
In my personal projects, I usually have 2 newlines before the declare statement. One before the file header comment and one after. However, in tests, I have no file header comment, so there is only 1 newline before the declare statement. Since I like my tests to follow the same coding standard as the rest of my source, it is easiest to ignore this error.
Check format of union type hints on PHP 8, using SlevomatCodingStandard.TypeHints.UnionTypeHintFormat.
Changed
Upgrade to slevomat/coding-standard version 7.
This may require downstream changes, since some Slevomat sniffs have BC breaks. This is why ramsey/coding-standard is bumping to version 2.0.0 for this change.