Bug #99989
closedphp 8.x: CategoryCollection.php line 119: Deprecation Notice: Automatic conversion of false to array is deprecated
100%
Description
With php 8.1 following error occurs:
PHP Runtime Deprecation Notice: Automatic conversion of false to array is deprecated in typo3/sysext/core/Classes/Category/Collection/CategoryCollection.php line 119
Updated by Thomas Hohn almost 2 years ago
Do you have some information under which circumstances this error occurs or which extension - seems to be non-core or?
Updated by Sven Ignor almost 2 years ago
We have categorized pages and I need the CategoryCollection in a separate controller.
The message appears directly when using:
$collection = CategoryCollection::load( $category->getUid(), true, 'pages', 'categories' );
Unfortunately I don't have more.
Updated by Thomas Hohn over 1 year ago
Hi
So I guess the uid is either zero or a value that will make the sql query return false - question is what you would expect result to be in case that the uid doesn't return a record?
Updated by Benni Mack over 1 year ago
- Status changed from New to Needs Feedback
Any update here by the issue creator?
Updated by Gerrit Code Review 5 months ago
- Status changed from Needs Feedback to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/84624
Updated by Gerrit Code Review 5 months ago
Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/84624
Updated by Gerrit Code Review 5 months ago
Patch set 1 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/84802
Updated by Georg Ringer 5 months ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 2000ff3385ebdd66f074f379857edd3711cd7c86.