8000 Revert "feature #18977 [PropertyAccess] Add missing arguments to Prop… · symfony/symfony@a4ce063 · GitHub
[go: up one dir, main page]

Skip to content

Commit a4ce063

Browse files
committed
Revert "feature #18977 [PropertyAccess] Add missing arguments to PropertyAccess::createPropertyAccessor() (chalasr)"
This reverts commit 86eb7a3, reversing changes made to 856c9f6.
1 parent f2ee67f commit a4ce063

File tree

2 files changed

+4
-54
lines changed

2 files changed

+4
-54
lines changed

src/Symfony/Component/PropertyAccess/PropertyAccess.php

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -21,35 +21,21 @@ final class PropertyAccess
2121
/**
2222
* Creates a property accessor with the default configuration.
2323
*
24-
* @param bool $throwExceptionOnInvalidIndex
25-
*
2624
* @return PropertyAccessor The new property accessor
2725
*/
28-
public static function createPropertyAccessor($throwExceptionOnInvalidIndex = false, $magicCall = false)
26+
public static function createPropertyAccessor()
2927
{
30-
return self::createPropertyAccessorBuilder($throwExceptionOnInvalidIndex, $magicCall)->getPropertyAccessor();
28+
return self::createPropertyAccessorBuilder()->getPropertyAccessor();
3129
}
3230

3331
/**
3432
* Creates a property accessor builder.
3533
*
36-
* @param bool $enableExceptionOnInvalidIndex
37-
*
3834
* @return PropertyAccessorBuilder The new property accessor builder
3935
*/
40-
public static function createPropertyAccessorBuilder($enableExceptionOnInvalidIndex = false, $enableMagicCall = false)
36+
public static function createPropertyAccessorBuilder()
4137
{
42-
$propertyAccessorBuilder = new PropertyAccessorBuilder();
43-
44-
if ($enableExceptionOnInvalidIndex) {
45-
$propertyAccessorBuilder->enableExceptionOnInvalidIndex();
46-
}
47-
48-
if ($enableMagicCall) {
49-
$propertyAccessorBuilder->enableMagicCall();
50-
}
51-
52-
return $propertyAccessorBuilder;
38+
return new PropertyAccessorBuilder();
5339
}
5440

5541
/**

src/Symfony/Component/PropertyAccess/Tests/PropertyAccessTest.php

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)
0