Skip to content
Snippets Groups Projects
Commit 24b7dfd6 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/+/78888


Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarNikita Hovratov <nikita.h@live.de>
parent 7d7b46c9
Branches
Tags
No related merge requests found
......@@ -305,7 +305,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()
{
......@@ -322,7 +322,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