Page MenuHomePhabricator

Undefined index: scope_opener in IfElseStructureSniff.php
Closed, DuplicatePublic

Description

After enabling phpcs for WikiLexicalData extension in T185492 I get an exception while running phpcs check:

An error occurred during processing; checking has been
aborted. The error message was: Undefined index: scope_opener in
/src/vendor/mediawiki/mediawiki-codesniffer/MediaWiki/Sniffs/ControlStructures/IfElseStructureSniff.php
on line 35 (Internal.Exception)

It occurred multiple times in different files, see full log.

Link to one of files where this error occur.

This extension uses mediawiki/mediawiki-codesniffer of version 15.0.0