Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
services
t3o sites
extensions.typo3.org
extensions.typo3.org
Commits
81bdc8f9
Commit
81bdc8f9
authored
Jul 20, 2017
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
html/typo3conf/ext/ter_fe2/Classes/Utility/Archive.php
View file @
81bdc8f9
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment