File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed
stubs/Symfony/Component/PropertyAccess Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ parameters:
55
55
- stubs/Symfony/Component/PropertyAccess/Exception/InvalidArgumentException.stub
56
56
- stubs/Symfony/Component/PropertyAccess/Exception/RuntimeException.stub
57
57
- stubs/Symfony/Component/PropertyAccess/Exception/UnexpectedTypeException.stub
58
+ - stubs/Symfony/Component/PropertyAccess/PropertyAccessor.stub
58
59
- stubs/Symfony/Component/PropertyAccess/PropertyAccessorInterface.stub
59
60
- stubs/Symfony/Component/PropertyAccess/PropertyPathInterface.stub
60
61
- stubs/Symfony/Component/Security/Acl/Model/AclInterface.stub
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace Symfony\Component\PropertyAccess;
4
+
5
+ class PropertyAccessor implements PropertyAccessorInterface
6
+ {
7
+
8
+ /**
9
+ * @phpstan-template T of object|array<mixed>
10
+ * @phpstan-param T &$objectOrArray
11
+ * @phpstan-param-out ($objectOrArray is object ? T : array<mixed>) $objectOrArray
12
+ * @phpstan-param string|PropertyPathInterface $propertyPath
13
+ * @phpstan-param mixed $value
14
+ *
15
+ * @return void
16
+ *
17
+ * @throws Exception\InvalidArgumentException If the property path is invalid
18
+ * @throws Exception\AccessException If a property/index does not exist or is not public
19
+ * @throws Exception\UnexpectedTypeException If a value within the path is neither object nor array
20
+ */
21
+ public function setValue(&$objectOrArray, $propertyPath, $value);
22
+
23
+ }
You can’t perform that action at this time.
0 commit comments