Project

General

Profile

Actions

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.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
-
Start date:
2023-02-20
Due date:
% Done:

100%

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

Actions #1

Updated by Sven Ignor almost 2 years ago

  • Description updated (diff)
Actions #2

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?

Actions #3

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.

Actions #4

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?

Actions #5

Updated by Benni Mack over 1 year ago

  • Status changed from New to Needs Feedback

Any update here by the issue creator?

Actions #6

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

Actions #7

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

Actions #8

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

Actions #9

Updated by Georg Ringer 5 months ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #10

Updated by Benni Mack 5 months ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF