Skip to content

Commit 1b15d57

Browse files
committed
bug #4300 [Components][PropertyAccess] Fix PropertyAccessorBuilder usage (Thierry Geindre)
This PR was merged into the 2.3 branch. Discussion ---------- [Components][PropertyAccess] Fix PropertyAccessorBuilder usage | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | 2.3, 2.4, 2.5 | Fixed tickets | See https://github.com./symfony/PropertyAccess/blob/2.3/PropertyAccess.php `getPropertyAccessorBuilder` does not exist. But the right fix might be to add the missing method. Commits ------- c0167da Fix PropertyAccessorBuilder usage
2 parents ef11ef4 + c0167da commit 1b15d57

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: components/property_access/introduction.rst

+2-2
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)