Actions
Bug #99989
openphp 8.x: CategoryCollection.php line 119: Deprecation Notice: Automatic conversion of false to array is deprecated
Status:
Needs Feedback
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
-
Start date:
2023-02-20
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
11
PHP Version:
8.1
Tags:
Complexity:
Is Regression:
Sprint Focus:
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 about 1 year 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 about 1 year 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 about 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 11 months ago
- Status changed from New to Needs Feedback
Any update here by the issue creator?
Actions