Inspectopedia
 
2024.3

Implicit octal literal can be replaced with explicit one

Info
New
Last modified: 03 December 2024

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 (php.net) for details.