3 ms·
>If something other than an Auth\Role object is passed in, a runtime exception occurs. This is not impressive. Even most popular super-weakly-typed languages s
by wyager 12y ago
>If something other than an Auth\Role object is passed in, a runtime exception occurs.
This is not impressive. Even most popular super-weakly-typed languages support runtime exceptions for type errors.
>Better yet, PhpStorm will check the types in real-time and underline type errors immediately.
This feature is frequently called "static typing". Many languages have this (and not just as some IDE extension).