PhpStorm 2021.2 Help

Code Inspection: #-private fields access without explicit 'this.'

Reports #x -styled access to private fields.

Such syntax was allowed in the early versions of the specification draft, but is no longer a valid syntax. Most recent versions of the draft only allow using this. qualifier explicitly.

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: 16 July 2021