Open szepeviktor opened 5 years ago
I hope we go only with PHP 7. Please add declare(strict_types = 1); to each file.
declare(strict_types = 1);
SlevomatCodingStandard.TypeHints.DeclareStrictTypes does it for you.
SlevomatCodingStandard.TypeHints.DeclareStrictTypes
This appears to still be relevant, and could now be done for sure in the 2.0.0 branch.
WordPress still hasn't set its minimum to PHP7, so still waiting on this.
GitHub issues has no expiration date :)
I hope we go only with PHP 7. Please add
declare(strict_types = 1);
to each file.SlevomatCodingStandard.TypeHints.DeclareStrictTypes
does it for you.