On 05/01/2018 09:50, Lester Caine wrote:
'Simply' adding a crude type check with it's overheads does not remove the
validation requirements which still need to be handled much of the time.
Yes, I'd love to be able to define custom types like "integer in the
range 0 to 100" or whatever.
But
On 03/01/2018 23:19, Michael Morris wrote:
I'm not familiar with the Zend Engine as I probably should be. I bring the
perspective of an end user. From what you've posted am I correct in stating
that PHP Type Hints / scalar Type Declarations are in truth syntactic sugar
for asserting the type chec
On Sat, Jan 6, 2018 at 7:36 AM Christoph M. Becker
wrote:
> Hi everybody!
>
> As of PHP 7.2.0 calling assert() with a string argument has been
> deprecated[1]. However, it seems that ASSERT_QUIET_EVAL /
> assert.quiet_eval is supposed to only work as documented, if a string
> argument is passed[
Hi everybody!
As of PHP 7.2.0 calling assert() with a string argument has been
deprecated[1]. However, it seems that ASSERT_QUIET_EVAL /
assert.quiet_eval is supposed to only work as documented, if a string
argument is passed[2]. If that is indeed the case, wouldn't it make
sense to deprecate th