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
Bug Report
Current Behavior
When calling
CategoryRepository::findTree(), a PHP runtime deprecation notice is thrown:Expected behavior/output
No deprecation notice should be thrown. The
nullcheck should happen before using the value as an array offset.Environment
Possible Solution
Additional context