Attempting to assign the wrong data type will result in a fatal error.

...only if `strict_types` are declared, otherwise the PHP will coerce the value as best it can.