Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 384538b

Browse filesBrowse files
committed
bug #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 #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
Copy full SHA for 384538b

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎components/property_access/introduction.rst

Copy file name to clipboardExpand all lines: components/property_access/introduction.rst
+2-2Lines changed: 2 additions & 2 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.