Unverified Commit b32fc011 authored by Daniel Siepmann's avatar Daniel Siepmann
Browse files

TASK: Add test for TypeHintCatchExceptionSniff

* Check that the sniff works with new feature of removed extension.

Relates: #44
parent fda1921d
Pipeline #239 passed with stages
in 2 minutes and 20 seconds
......@@ -20,14 +20,23 @@
"severity": 5,
"source": "Typo3Update.Classname.TypeHintCatchException.legacyClassname",
"type": "ERROR"
},
{
"column": 11,
"fixable": false,
"line": 48,
"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.TypeHintCatchException.RemovedClass.perm",
"type": "WARNING"
}
],
"warnings": 0
"warnings": 1
}
},
"totals": {
"errors": 2,
"fixable": 2,
"warnings": 0
"warnings": 1
}
}
......@@ -42,3 +42,9 @@ try {
} catch (TYPO3\CMS\Extbase\Exception $e) {
// else
}
try {
// something
} catch (\TYPO3\CMS\Perm\Controller\PermissionAjaxController $e) {
// else
}
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