Commit 6be0de28 authored by Daniel Hürtgen's avatar Daniel Hürtgen

Update StringSniff.php

parent f723d9a2
Pipeline #259 passed with stages
in 1 minute and 44 seconds
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment