Strong data typing bug
php, type-hinting
Solution
There is no type hinting for boolean parameters in php (yet). You can only specify a class name or `array`. Therefore `function foo(bool $b)` means: "the parameter $b must be an instance of the class 'bool' or null".
http://docs.php.net/language.oop5.typehinting:
Functions are now able to force parameters to be objects (by specifying the name of the class in the function prototype) or arrays (since PHP 5.1).
Problem
Is it normal to get the error "Default value for parameters with a class type hint can only be NULL" for a method in an interface defined as ``` public function nullify(bool $force=FALSE); ``` ? I need it to be bool, not an object, and FALSE by default.