Skip to content

jsonDecode uses constant true & 16; conditions always false #32

@rafageist

Description

@rafageist

From PHPStan baseline: src/div.php lines 8527, 8574, 8583.

Snippet:
} elseif (true & 16) { = []; } ... if (true & 16) { [] = ; } else { -> = ; }

rue & 16 is always false (bitwise). Likely intended to use a flags variable (e.g., $flags & 16). Confirm and replace.

Metadata

Metadata

Assignees

Labels

bugphpstanStatic analysis (PHPStan) findings

Type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions