엄격한 모드에서는 선언 타입과 정확히 일치하는 변수만이 허용됩니다. 엄격한 타입 검사는 다음과 같이 활성화할 수 있습니다:
declare(strict_types=1)
자세한 내용은 Strict typing (php.net)(을)를 참고하세요.