Inspectopedia Help

Implicit octal literal can be replaced with explicit one

Reports the implicit octal literals such as 071 that could be replaced with explicit ones such as 0o71.

Explicit octal literals using the 0o/0O prefix are supported in PHP 8.1 and later.

See Explicit octal integer literal notation ( for details.

Inspection Details

Available in:

PhpStorm 2023.3, Qodana for PHP 2023.3



Last modified: 13 July 2023