#71127Extending Class via $GLOBALS['TYPO3_CONF_VARS']['EXT'] throws 500 server error because of linebreak after class name
Description
Hi,
i’m extending a extension via proxy class as described in corresponding manual (see [[https://docs.typo3.org/typo3cms/extensions/news/DeveloperManual/ExtendNews/ProxyClassGenerator/Index.html]]) via localconf.php of my own extension:
$GLOBALS['TYPO3_CONF_VARS']['EXT']['news']['classes']['Domain/Model/News'][] = my_extkey';
When my extending class looks like this, everything is fine:
class News extends \GeorgRinger\News\Domain\Model\News {
// Some code
}
But when the starting curly brace is in the next line as defined in PSR-2 coding standard, the server throws an error if i open the a page which accesses the extended class:
class News extends \GeorgRinger\News\Domain\Model\News
{
// Some code
}
The error message says “syntax error, unexpected ‘{‘, expecting function in /typo3temp/Cache/Code/news/tx_news_domain_model_news.php”. The reason is, that the last, closing curly brace of the class is missing (see screenshot).
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.