Symfony\Component\PropertyAccess\PropertyAccessor::readPropertiesUntil
Reads the path from an object up to a given path index.
Signature
private function readPropertiesUntil(object|array&
$objectOrArray,
PropertyPathInterface
$propertyPath,
integer
$lastIndex )
Parameters
$objectOrArray
— object- The object or array to read from
$propertyPath
— Symfony\Component\PropertyAccess\PropertyPathInterface- The property path to read
$lastIndex
— integer- The index up to which should be read
Returns
- array
- The values read in the path.
Errors/Exceptions
-
UnexpectedTypeException
- If a value within the path is neither object nor array.