Commit 81bdc8f9 authored by Jens Jacobsen's avatar Jens Jacobsen
Browse files

Change creation of instance for \T3o\TerFe2\Visitor\ArrayAssurer to ArrayAssurer::class

parent 6d4cc93c
Pipeline #1727 passed with stages
in 3 minutes and 10 seconds
......@@ -25,6 +25,8 @@ namespace T3o\TerFe2\Utility;
* This copyright notice MUST APPEAR in all copies of the script!
******************************************************************/
use T3o\TerFe2\Visitor\ArrayAssurer;
/**
* Utilities to manage zip and t3x files
*/
......@@ -374,7 +376,7 @@ class Archive
// We will need to resolved names
$traverser->addVisitor(new \PhpParser\NodeVisitor\NameResolver);
// Our own node visitor
$traverser->addVisitor(\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('\T3o\TerFe2\Visitor\ArrayAssurer'));
$traverser->addVisitor(\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(ArrayAssurer::class));
$statements = $traverser->traverse($statements);
$code = $prettyPrinter->prettyPrint($statements);
......
Supports Markdown
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