Skip to content

PHP Deprecation: Using null as array offset in CategoryRepository::findTree() #2787

@bikar-can0199

Description

@bikar-can0199

Bug Report

Current Behavior

When calling CategoryRepository::findTree(), a PHP runtime deprecation notice is thrown:

PHP Runtime Deprecation Notice: Using null as an array offset is deprecated,
use an empty string instead in
vendor/georgringer/news/Classes/Domain/Repository/CategoryRepository.php line 114

Expected behavior/output

No deprecation notice should be thrown. The null check should happen before using the value as an array offset.

Environment

  • TYPO3 version(s): 14.1.1
  • news version: 14.0.1
  • Is your TYPO3 installation set up with Composer (Composer Mode): yes
  • OS: macOS (Docker/DDEV)
  • PHP: 8.5

Possible Solution

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions