[BUGFIX] Fix access to empty ObjectStorage with numeric key 33/34433/2
authorMathias Brodala <mbrodala@pagemachine.de>
Thu, 30 Oct 2014 10:40:42 +0000 (11:40 +0100)
committerMarkus Klein <klein.t3@reelworx.at>
Fri, 21 Nov 2014 09:53:37 +0000 (10:53 +0100)
commit8d9ed038368d72656efdd48c354553a3d004877b
treef972356c268ab964065c8fbacd8ad6f480b13908
parent3dc31de82d79c9dae5ad1cec0ac7ae1f7fb6634a
[BUGFIX] Fix access to empty ObjectStorage with numeric key

This prevents a warning error triggered by spl_object_hash being called
with an integer/string and can be caused by Fluid like this:

{object.relations.0}

Resolves: #62553
Releases: master, 6.2
Change-Id: Ie7d2a249e17f719142482781c2a96d093ff5f94c
Reviewed-on: http://review.typo3.org/34433
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
typo3/sysext/extbase/Classes/Persistence/ObjectStorage.php
typo3/sysext/extbase/Tests/Unit/Persistence/ObjectStorageTest.php