Symfony\Component\PropertyAccess\PropertyAccessor::writeIndex
Sets the value of the property at the given index in the path
Signature
private function writeIndex(ArrayAccess|array&
$array,
string|integer
$index,
mixed
$value )
Parameters
$array
— object- An array or \ArrayAccess object to write to
$index
— object- The index to write at
$value
— mixed- The value to write
Errors/Exceptions
-
NoSuchPropertyException
- If the array does not implement \ArrayAccess or it is not an array