TASK: Update InheritanceSniff tests to reflect added removed extension
Relates: #44
This commit is contained in:
parent
84e4c426ef
commit
640f85af7d
3 changed files with 48 additions and 6 deletions
|
@ -72,11 +72,19 @@ class Typo3Update_Sniffs_Classname_InheritanceSniff extends AbstractClassnameChe
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$lastPosition = $phpcsFile->findNext(T_OPEN_CURLY_BRACKET, $stackPtr);
|
||||||
|
|
||||||
foreach ($interfaces as $interface) {
|
foreach ($interfaces as $interface) {
|
||||||
$position = $phpcsFile->findNext(T_STRING, $stackPtr, null, false, $interface);
|
$interface = trim($interface, '\\');
|
||||||
if ($position === false) {
|
$position = $stackPtr;
|
||||||
continue;
|
|
||||||
|
do {
|
||||||
|
try {
|
||||||
|
list($position, $classname) = $this->getAfter($phpcsFile, $position + 1);
|
||||||
|
} catch (\UnexpectedValueException $e) {
|
||||||
|
continue 2;
|
||||||
}
|
}
|
||||||
|
} while ($classname !== $interface && $position <= $lastPosition);
|
||||||
|
|
||||||
$this->processFeatures($phpcsFile, $position, $interface);
|
$this->processFeatures($phpcsFile, $position, $interface);
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,14 +56,41 @@
|
||||||
"severity": 5,
|
"severity": 5,
|
||||||
"source": "Typo3Update.Classname.Inheritance.legacyClassname",
|
"source": "Typo3Update.Classname.Inheritance.legacyClassname",
|
||||||
"type": "ERROR"
|
"type": "ERROR"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"column": 35,
|
||||||
|
"fixable": false,
|
||||||
|
"line": 34,
|
||||||
|
"message": "Calls to removed code are not allowed; found perm. Removed in 7.0. The logic is moved into EXT:beuser. See: https://docs.typo3.org/typo3cms/extensions/core/7.6/Changelog/7.0/Breaking-62339-MoveExtPermIntoExtBeuser.html",
|
||||||
|
"severity": 5,
|
||||||
|
"source": "Typo3Update.Classname.Inheritance.RemovedExtension.perm",
|
||||||
|
"type": "WARNING"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"column": 6,
|
||||||
|
"fixable": false,
|
||||||
|
"line": 35,
|
||||||
|
"message": "Calls to removed code are not allowed; found perm. Removed in 7.0. The logic is moved into EXT:beuser. See: https://docs.typo3.org/typo3cms/extensions/core/7.6/Changelog/7.0/Breaking-62339-MoveExtPermIntoExtBeuser.html",
|
||||||
|
"severity": 5,
|
||||||
|
"source": "Typo3Update.Classname.Inheritance.RemovedExtension.perm",
|
||||||
|
"type": "WARNING"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"column": 5,
|
||||||
|
"fixable": false,
|
||||||
|
"line": 36,
|
||||||
|
"message": "Calls to removed code are not allowed; found perm. Removed in 7.0. The logic is moved into EXT:beuser. See: https://docs.typo3.org/typo3cms/extensions/core/7.6/Changelog/7.0/Breaking-62339-MoveExtPermIntoExtBeuser.html",
|
||||||
|
"severity": 5,
|
||||||
|
"source": "Typo3Update.Classname.Inheritance.RemovedExtension.perm",
|
||||||
|
"type": "WARNING"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"warnings": 0
|
"warnings": 3
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"totals": {
|
"totals": {
|
||||||
"errors": 6,
|
"errors": 6,
|
||||||
"fixable": 6,
|
"fixable": 6,
|
||||||
"warnings": 0
|
"warnings": 3
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,3 +30,10 @@ class InputFileForIssues extends Tx_Extbase_Configuration_Configurationmanager i
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class InputFileForIssues extends \TYPO3\CMS\Perm\Controller\PermissionAjaxController implements
|
||||||
|
\TYPO3\CMS\Perm\Controller\PermissionAjaxController,
|
||||||
|
TYPO3\CMS\Perm\Controller\PermissionModuleController
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue