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
When wishing to declare strict types in files containing markup outside PHP opening and closing tags, the declaration MUST be on the first line of the file and include an opening PHP tag, the strict types declaration and closing tag.
According to PSR-12 it is a valid code style but phpcs reports errors:
-------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] Header blocks must be separated by a single blank line
| | (PSR12.Files.FileHeader.SpacingAfterBlock)
1 | ERROR | [x] Header blocks must be separated by a single blank line
| | (PSR12.Files.FileHeader.SpacingAfterBlock)