declare(strict_types=1); In December 2015, PHP 7 introduced scalar type declarations and with it the strict types flag. To enable the strict mode, a single declare directive must be placed at the top of the file. This means that the strictness of typing for scalars is configured on a per-file basis
https://www.php.net/manual/en/language.types.declarations.php#language.types.declarations.strict