Parameter type declarations and return type declarations were added to PHP in 7.0 For scalar types (bool, int, float, string), what happens when a different type of value is passed into a function depends on if strict mode is enabled in the file that calls the function. The default is to coerce some scalar values […]