Changes between Initial Version and Version 1 of Ticket #49628, comment 26
- Timestamp:
- 11/09/2021 08:23:53 AM (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #49628, comment 26
initial v1 9 9 2. We should not fix PHP's "quirks" for type juggling. PHP gives `[] == false` and `[false] == true`. Those quirks apply to everyone on every line of comparative code they write. 10 10 11 Although th is isnot a new design pattern in Core, I consider them all incorrect.11 Although the strict checks are not a new design pattern in Core, I consider them all incorrect. 12 12 13 13 To repeat, I believe we should only strictly type filter return values when applicable PHP code requires a strict type and would error out without proper typing.