File tree 2 files changed +4
-54
lines changed
src/Symfony/Component/PropertyAccess
2 files changed +4
-54
lines changed Original file line number Diff line number Diff line change @@ -21,35 +21,21 @@ final class PropertyAccess
21
21
/**
22
22
* Creates a property accessor with the default configuration.
23
23
*
24
- * @param bool $throwExceptionOnInvalidIndex
25
- *
26
24
* @return PropertyAccessor The new property accessor
27
25
*/
28
- public static function createPropertyAccessor ($ throwExceptionOnInvalidIndex = false , $ magicCall = false )
26
+ public static function createPropertyAccessor ()
29
27
{
30
- return self ::createPropertyAccessorBuilder ($ throwExceptionOnInvalidIndex , $ magicCall )->getPropertyAccessor ();
28
+ return self ::createPropertyAccessorBuilder ()->getPropertyAccessor ();
31
29
}
32
30
33
31
/**
34
32
* Creates a property accessor builder.
35
33
*
36
- * @param bool $enableExceptionOnInvalidIndex
37
- *
38
34
* @return PropertyAccessorBuilder The new property accessor builder
39
35
*/
40
- public static function createPropertyAccessorBuilder ($ enableExceptionOnInvalidIndex = false , $ enableMagicCall = false )
36
+ public static function createPropertyAccessorBuilder ()
41
37
{
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 ();
53
39
}
54
40
55
41
/**
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments