Bug #99989
closed
php 8.x: CategoryCollection.php line 119: Deprecation Notice: Automatic conversion of false to array is deprecated
Added by Sven Ignor almost 2 years ago.
Updated 5 months ago.
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
- Description updated (diff)
Do you have some information under which circumstances this error occurs or which extension - seems to be non-core or?
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.
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?
- Status changed from New to Needs Feedback
Any update here by the issue creator?
- Status changed from Needs Feedback to Under Review
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Closed
Also available in: Atom
PDF