Skip to content

Commit 567ccbc

Browse files
committed
Merge branch '5.2' into 5.x
* 5.2: [PropertyAccess] use bitwise instead of boolean flags
2 parents 3582fa1 + c26e7a8 commit 567ccbc

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy