-
Notifications
You must be signed in to change notification settings - Fork 55
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
explode() - string required, int passed #301
Comments
I just patched the GeneralUtility for it:
|
mbrodala
added a commit
to mbrodala/blog
that referenced
this issue
May 22, 2024
The new TypoScript parser introduced in TYPO3v12 yields a regular integer in case of a single storagePid. Only in case of a CSV this will be a string. This in turn leads to explode() failing with a type error in the integer case. Fix this by normalizing the setting value to string. Fixes: TYPO3GmbH#301
Just proposed a PR with exactly this fix. |
mbrodala
added a commit
to mbrodala/blog
that referenced
this issue
Jul 16, 2024
The new TypoScript parser introduced in TYPO3v12 yields a regular integer in case of a single storagePid. Only in case of a CSV this will be a string. This in turn leads to explode() failing with a type error in the integer case. Fix this by normalizing the setting value to string. Fixes: TYPO3GmbH#301
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Report
Prerequisites
Description
GeneralUtility::intExplode is called from CategoryRepository with
$this->settings['persistence']['storagePid']
as argument, but this value is an integer on TYPO3v12 due to the new TS parser. On PHP 8.x this causes an error becauseexplode()
no longer silently accepts integers as input.Also happens in:
Steps to Reproduce
Expected behavior: Obviously, no exceptions thrown.
Actual behavior: Exception thrown.
Versions
The text was updated successfully, but these errors were encountered: