Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHPStan warning "Class …TypoScriptService not found" #100

Open
cundd opened this issue Jan 23, 2025 · 1 comment
Open

PHPStan warning "Class …TypoScriptService not found" #100

cundd opened this issue Jan 23, 2025 · 1 comment

Comments

@cundd
Copy link
Contributor

cundd commented Jan 23, 2025

TYPO3's TypoScriptService isn't imported into the controller class. So the following line would likely result in an error:

$typoScriptService = GeneralUtility::makeInstance(TypoScriptService::class);

I'm not sure at which point this feature worked. It's not relevant for my use case, just wanted to let you know.

A possible follow-up error would be the removed method configurationManager->getContentObject() in

$originalSettings[$key] = $this->configurationManager->getContentObject()

If necessary a fix could be found here: https://docs.typo3.org/permalink/t3coreapi:typo3-request-attribute-current-content-object

To be honest: I would just remove this feature…

@cundd
Copy link
Contributor Author

cundd commented Jan 23, 2025

I hope I can stop bothering you now 😄
AFAIK TYPO3 v13 support is now working correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant