PhpStorm 2022.2 Help

Code Inspection: Octal integer

Reports a deprecated octal integer literal prefixed with 0 instead of 0o.


Such literals are not allowed in modern ECMAScript code, and using them in the strict mode is an error.


To force this inspection for ES5 and ES3 language levels, select the 'Warn about obsolete octal literals in ES5- code' checkbox below.

Suppress an inspection in the editor

  1. Position the caret at the highlighted line and press Alt+Enter or click the Intention action icon.

  2. Click the arrow next to the inspection you want to suppress and select the necessary suppress action.

Last modified: 13 May 2022