public static function assertTypeError($function) { if (PHP_VERSION_ID < 70000) { Assert::error($function, E_RECOVERABLE_ERROR); } else { Assert::exception($function, '\\TypeError'); } }