kalessil / phpinspectionsea

A Static Code Analyzer for PHP (a PhpStorm/Idea Plugin)
https://plugins.jetbrains.com/plugin/7622?pr=phpStorm
Other
1.44k stars 118 forks source link

Deprecated fopen 'b' flag warning #1678

Open Leamsi9 opened 3 years ago

Leamsi9 commented 3 years ago

| Subject | Details | | :Redundant warning | :Warns against missing 'b' flag in fopen referring to outdated docs | | Plugin | Php Inspections (EA Extended) or Php Inspections (EA Ultimate), 4.0.6| | Language level | e.g. PHP 7.4 |

Current behaviour

image

Expected behaviour

That line is no longer in the documentation. Since PHP 4.32 the 'b' mode is the default, so it is redundant to specify it.

See https://bugs.php.net/bug.php?id=77781 which was evidently incorporated since warning is gone.

Environment details

ea-inspections-team commented 2 years ago

Thanks for reporting @Leamsi9! Looking into it!