Hi,

On 26/07/2016 23:36, Brent Shaffer wrote:
> assert issues a warning or exception based on your "assert"
> configuration. If the goal is to mimic a type check, we could *actually*
> mimic a type check and use E_RECOVERABLE_ERROR in PHP 5 and throw
> TypeError in PHP 7. But we aren't doing this, so using "assert" does not
> mimic a type check. Since the PHP documentation says to not use
> "assert", and it essentially issues a warning anyway, why not just issue
> a WARNING without assert?

I agree that using assert() is a fairly weird and I would vote against it.

Also I would expect to be able to pass a null value in order to reset
the expiration to (never|the default). That's in fact supported:

"If null is passed explicitly, a default value MAY be used..."


Cheers
-- 
Matteo Beccati

Development & Consulting - http://www.beccati.com/

-- 
You received this message because you are subscribed to the Google Groups "PHP 
Framework Interoperability Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/php-fig/49abda91-fb26-20a5-9827-0b6380d6dec2%40beccati.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to