Skip to content
Snippets Groups Projects
Commit c67cf753 authored by Rico Sonntag's avatar Rico Sonntag Committed by Daniel Goerz
Browse files

[BUGFIX] Fixed @return annotation

current() returns FALSE if array is empty or internal array pointer is
beyond the end.

Without this change, this currently leads to the following exception:

Return value of TYPO3\CMS\Extbase\Error\Result::getFirstError() must be an
instance of TYPO3\CMS\Extbase\Error\Error, bool returned

Releases: master, 10.4
Resolves: #93834
Relates: #88608
Change-Id: I9a01c232ac456ebfba7aa10f0946c3d639b2f47e
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/68656


Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarDaniel Goerz <daniel.goerz@posteo.de>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarDaniel Goerz <daniel.goerz@posteo.de>
parent 932ff134
Branches
Tags
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment