Skip to content

Usage of deprecated E_STRICT is reported even though it's guarded #162

@johnbillion

Description

@johnbillion

The following code triggers a "Use of constant E_STRICT is deprecated" error despite it being guarded by a PHP version check:

if ( version_compare( PHP_VERSION, '8.4', '<' ) && E_STRICT === $errno ) {
	// ...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions