PHP 8 · Types and functions
Turn on strict typing
Put this on the first line of a file so scalar type declarations aren't silently converted.
<?php
declare(strict_types=1);
PHP 8 · Types and functions
Put this on the first line of a file so scalar type declarations aren't silently converted.
<?php
declare(strict_types=1);
Was this page helpful?