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
is it possible for SlevomatCodingStandard.TypeHints.DeclareStrictTypes to set the declare() below the file docblock to comply with PSR12.Files.FileHeader.IncorrectOrder?
So, instead of:
<?php
declare(strict_types=1);
/**
* This file contains an example of coding styles.
*/
It needs to be:
<?php
/**
* This file contains an example of coding styles.
*/
declare(strict_types=1);
Otherwise, it throws The file-level docblock must follow the opening PHP tag in the file header (PSR12.Files.FileHeader.IncorrectOrder).
Any idea?
The text was updated successfully, but these errors were encountered:
Hello,
is it possible for
SlevomatCodingStandard.TypeHints.DeclareStrictTypes
to set the declare() below the file docblock to comply withPSR12.Files.FileHeader.IncorrectOrder
?So, instead of:
It needs to be:
Otherwise, it throws
The file-level docblock must follow the opening PHP tag in the file header (PSR12.Files.FileHeader.IncorrectOrder)
.Any idea?
The text was updated successfully, but these errors were encountered: