Bug #80905
closedClass AbstractNode missing in LegacyClassesForIde.php
0%
Description
The Class TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\AbstractNode
is part of sysext/fluid/Migrations/Code/ClassAliasMap.php
but is not present in sysext/fluid/Migrations/Code/LegacyClassesForIde.php
, thus it is not recognised in the IDE.
Please add the following to LegacyClassesForIde.php
namespace TYPO3\CMS\Fluid\Core\Parser\SyntaxTree {
class AbstractNode extends \TYPO3Fluid\Fluid\Core\Parser\SyntaxTree\ViewHelperNode
{
}
}
By the way..is the class AbstractNode on purpose mapping to the new ViewHelperNode and not the new AbstractNode?
Updated by Benni Mack almost 8 years ago
- Target version changed from 8 LTS to next-patchlevel
Updated by Claus Due almost 8 years ago
that one is a bit special - the class is mapped to ViewHelperNode because previously in TYPO3, the signature of one of the VH API methods required an AbstractNode when for obvious reasons it should require a ViewHelperNode. Fluid standalone fixed that, so we mapped the AbstractNode->ViewHelperNode to make signatures compatible. That's also why the class isn't mapped in IDE classes: referencing that class in any other way than the method signature causes a fatal error (constructors are completely different on those two classes)
so it all boils down the PHP7 signature compatibility and you must never use CMS's AbstractNode in any of your own code, ever.
Updated by Wouter Wolters almost 8 years ago
- Status changed from New to Rejected
Rejected after the explanation by Claus. removed CMS .class AbstractNode must never be used