Skip to content

Commit 081b6ae

Browse files
committed
minor #15080 [PropertyAccess]  do not pass boolean constructor flags (xabbuh)
This PR was merged into the 5.3-dev branch. Discussion ---------- [PropertyAccess]  do not pass boolean constructor flags see symfony/symfony#39693 Commits ------- a9cb63d [PropertyAccess] do not pass boolean constructor flags
2 parents 567ccbc + a9cb63d commit 081b6ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/property_access.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ Sometimes, adder and remover methods don't use the standard ``add`` or ``remove`
435435

436436
$list = new PeopleList();
437437
$reflectionExtractor = new ReflectionExtractor(null, null, ['join', 'leave']);
438-
$propertyAccessor = new PropertyAccessor(PropertyAccessor::DISALLOW_MAGIC_METHODS, false, null, true, $reflectionExtractor, $reflectionExtractor);
438+
$propertyAccessor = new PropertyAccessor(PropertyAccessor::DISALLOW_MAGIC_METHODS, PropertyAccessor::THROW_ON_INVALID_PROPERTY_PATH, null, $reflectionExtractor, $reflectionExtractor);
439439
$propertyAccessor->setValue($person, 'peoples', ['kevin', 'wouter']);
440440

441441
var_dump($person->getPeoples()); // ['kevin', 'wouter']

0 commit comments

Comments
 (0)