rfc:strict_operators:faq

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
rfc:strict_operators:faq [2020/07/06 14:58] jasnyrfc:strict_operators:faq [2020/07/06 15:01] (current) jasny
Line 101: Line 101:
 ==== Why is switch not affected? ==== ==== Why is switch not affected? ====
  
-Using strict_operators will apply only result in cases where a ''TypeError'' is thrown. It will not affect the behavior, giving a different result.+Using strict_operators will only result in cases where a ''TypeError'' is thrown. It will not affect the behavior, giving a different result.
  
 Changing ''switch'' to compare using ''==='' would change the behavior based on the directive. Changing ''switch'' to compare using ''==='' would change the behavior based on the directive.
  
-To use strict comparison, most ''switch'' statements can be rewritten to [[https://wiki.php.net/rfc/match_expression_v2|''match'' statements].+To use strict comparison, most ''switch'' statements can be rewritten to [[https://wiki.php.net/rfc/match_expression_v2|match statements]].
  
 ==== Are there cases where a statement doesn't throw a TypeError but yields a different result? ==== ==== Are there cases where a statement doesn't throw a TypeError but yields a different result? ====
rfc/strict_operators/faq.1594047488.txt.gz · Last modified: 2020/07/06 14:58 by jasny