Skip to content

Commit 384538b

Browse files
committed
bug symfony#3549 Fixed createPropertyAccessorBuilder usage (antonbabenko)
This PR was submitted for the 2.4 branch but it was merged into the 2.3 branch instead (closes symfony#3549). Discussion ---------- Fixed createPropertyAccessorBuilder usage | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | 2.3+ Commits ------- d36cf2c Fixed createPropertyAccessorBuilder usage
2 parents f6dd678 + 934c0bb commit 384538b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/property_access/introduction.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ configured to enable extra features. To do that you could use the
350350
:class:`Symfony\\Component\\PropertyAccess\\PropertyAccessorBuilder`::
351351

352352
// ...
353-
$accessorBuilder = PropertyAccess::getPropertyAccessorBuilder();
353+
$accessorBuilder = PropertyAccess::createPropertyAccessorBuilder();
354354

355355
// Enable magic __call
356356
$accessorBuilder->enableMagicCall();
@@ -365,7 +365,7 @@ configured to enable extra features. To do that you could use the
365365
$accessor = $accessorBuilder->getPropertyAccessor();
366366

367367
// Or all in one
368-
$accessor = PropertyAccess::getPropertyAccessorBuilder()
368+
$accessor = PropertyAccess::createPropertyAccessorBuilder()
369369
->enableMagicCall()
370370
->getPropertyAccessor();
371371

0 commit comments

Comments
 (0)