Update StringSniff.php

This commit is contained in:
Daniel Hürtgen 2017-05-16 15:05:54 +02:00
parent f723d9a28b
commit 6be0de28d3

View file

@ -44,7 +44,7 @@ class Typo3Update_Sniffs_Classname_StringSniff implements PhpCsSniff
{
$token = $phpcsFile->getTokens()[$stackPtr]['content'];
// 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) {
$this->processFeatures($phpcsFile, $stackPtr, $classname);