BUGFIX: CGL issue

* Follow CGL and fix issue.
This commit is contained in:
Daniel Siepmann 2017-04-13 16:14:56 +02:00
parent 498e00c6f0
commit 42e04617bc
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4

View file

@ -43,7 +43,6 @@ class Typo3Update_Sniffs_Removed_TypoScriptSniff extends AbstractGenericUsage
foreach ($typo3Versions as $typo3Version => $removals) { foreach ($typo3Versions as $typo3Version => $removals) {
foreach ($removals as $removed => $config) { foreach ($removals as $removed => $config) {
$config['type'] = TokenInterface::TYPE_OBJECT_IDENTIFIER; $config['type'] = TokenInterface::TYPE_OBJECT_IDENTIFIER;
// If starting with new, it's a constructor, meaning content object or other Object. // If starting with new, it's a constructor, meaning content object or other Object.
if (strtolower(substr($removed, 0, 4)) === 'new ') { if (strtolower(substr($removed, 0, 4)) === 'new ') {