Skip to content
Snippets Groups Projects
Commit be93148c authored by Oliver Klee's avatar Oliver Klee Committed by Christian Kuhn
Browse files

[TASK] Make type annotations for ObjectStorage::toArray more specific

This helps static analysis of projects using this class.

Resolves: #100778
Releases: main, 11.5
Change-Id: I41cbf38477fb6743e5039dd9905ed38be81e96fc
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/78915


Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
parent d66a3b9d
Branches
Tags
No related merge requests found
......@@ -309,7 +309,7 @@ class ObjectStorage implements \Countable, \Iterator, \ArrayAccess, ObjectMonito
/**
* Returns this object storage as an array
*
* @return array The object storage
* @return list<TEntity>
*/
public function toArray()
{
......@@ -326,7 +326,7 @@ class ObjectStorage implements \Countable, \Iterator, \ArrayAccess, ObjectMonito
* for example dotted paths, e.g. ObjectAccess::getPropertyPath($object, 'children.array.123')
* to get exactly the 123rd item in the "children" property which is an ObjectStorage.
*
* @return array
* @return list<TEntity>
*/
public function getArray()
{
......
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