Symfony\Component\PropertyAccess\PropertyAccessor::writeProperty
Sets the value of the property at the given index in the path
Signature
private function writeProperty(object|array&
$object,
string
$property,
string|null
$singular,
mixed
$value )
Parameters
$object
— object- The object or array to write to
$property
— string- The property to write
$singular
— object- The singular form of the property name or null
$value
— mixed- The value to write
Errors/Exceptions
-
NoSuchPropertyException
- If the property does not exist or is not