Skip to content

Commit c0167da

Browse files
author
Thierry Geindre
committed
Fix PropertyAccessorBuilder usage
1 parent ef11ef4 commit c0167da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/property_access/introduction.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ enable this feature by using :class:`Symfony\\Component\\PropertyAccess\\Propert
209209
$person = new Person();
210210

211211
// Enable magic __call
212-
$accessor = PropertyAccess::getPropertyAccessorBuilder()
212+
$accessor = PropertyAccess::createPropertyAccessorBuilder()
213213
->enableMagicCall()
214214
->getPropertyAccessor();
215215

@@ -305,7 +305,7 @@ see `Enable other Features`_.
305305
$person = new Person();
306306
307307
// Enable magic __call
308-
$accessor = PropertyAccess::getPropertyAccessorBuilder()
308+
$accessor = PropertyAccess::createPropertyAccessorBuilder()
309309
->enableMagicCall()
310310
->getPropertyAccessor();
311311

0 commit comments

Comments
 (0)