Improvement description
To improve type safety and prevent unexpected behavior caused by PHP's loose comparisons, we should replace the equality operator == with the strict equality operator === wherever possible.
- Identify occurrences of == in the codebase.
- Replace them with === where it is safe to do so.
- Start with string comparisons, as these are usually the easiest and safest to convert.
Step 1: Strings (Easy)
Step 2: Everything else (Hard)