Skip to content

Commit c26e7a8

Browse files
committed
minor #15079 [PropertyAccess] use bitwise instead of boolean flags (xabbuh)
This PR was merged into the 5.2 branch. Discussion ---------- [PropertyAccess] use bitwise instead of boolean flags see symfony/symfony#32133 Commits ------- c5101c7 [PropertyAccess] use bitwise instead of boolean flags
2 parents 9e29a30 + c5101c7 commit c26e7a8

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(false, false, null, true, $reflectionExtractor, $reflectionExtractor);
438+
$propertyAccessor = new PropertyAccessor(PropertyAccessor::DISALLOW_MAGIC_METHODS, false, null, true, $reflectionExtractor, $reflectionExtractor);
439439
$propertyAccessor->setValue($person, 'peoples', ['kevin', 'wouter']);
440440

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

0 commit comments

Comments
 (0)