[BUGFIX] Fix access to empty ObjectStorage with numeric key 15/33615/3
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:15 +0000 (10:53 +0100)
commit279d0ac91f918fd41db4d7187860ef51347aa732
treed86c04bb432ab2659a00ba10bdc8078112770975
parentb7d81b070264a3e5657fb8d0f3c7ae4025e78aac
[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/33615
Reviewed-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Tested-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
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