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?
-- 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/1b45b8f6-b7d9-43ae-ac9f-24ff20070d4f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
