RE: [PHP-DEV] A different user perspective on scalar type declarations

From: Date: Fri, 27 Feb 2015 01:07:05 +0000
Subject: RE: [PHP-DEV] A different user perspective on scalar type declarations
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-83944@lists.php.net to get a copy of this message
Hi Anthony, > Passing boolean(false) where an integer is expected will generate an > error. This is a common practice, specifically around internal > functions. Example: I think he was talking about receiving integer as boolean, which we support, not boolean as integer. Regards François

« previous php.internals (#83944) next »