Update StringSniff.php
This commit is contained in:
parent
f723d9a28b
commit
6be0de28d3
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ class Typo3Update_Sniffs_Classname_StringSniff implements PhpCsSniff
|
||||||
{
|
{
|
||||||
$token = $phpcsFile->getTokens()[$stackPtr]['content'];
|
$token = $phpcsFile->getTokens()[$stackPtr]['content'];
|
||||||
// Special chars like ":" and "&" are used in configuration directives.
|
// Special chars like ":" and "&" are used in configuration directives.
|
||||||
$classnames = array_filter(preg_split('/\s+|:|>|-|&/', substr($token, 1, -1)));
|
$classnames = array_filter(preg_split('/\s+|:|->|&/', substr($token, 1, -1)));
|
||||||
|
|
||||||
foreach ($classnames as $classname) {
|
foreach ($classnames as $classname) {
|
||||||
$this->processFeatures($phpcsFile, $stackPtr, $classname);
|
$this->processFeatures($phpcsFile, $stackPtr, $classname);
|
||||||
|
|
Loading…
Reference in a new issue