Skip to content

[Improvement]: Replace == with === in PHP comparisons where possible #51

@solverat

Description

@solverat

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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions