Skip to content

PHP 8.3: Path to Saner Increment/Decrement operators #1985

@afilina

Description

@afilina

Related to #1589

Analysis

Note: the last deprecation (increment operator with non-numeric strings) was merged in a PR targeting PHP 8.5.

Top 2000 Packages

It was impractical to analyze this change as it would require the ability to infer types.

3v4l.org

Increment/decrement operators - warnings on bool, deprecations on some strings, last change only observable in git.master (8.5)

Detection

Based on personal experience dealing with over a hundred legacy codebases, this is a common issue. However, it is impractical to detect this without the ability to infer types.

References

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