1 | <?php |
||
16 | class ArgumentDescriptor extends DescriptorAbstract implements Interfaces\ArgumentInterface |
||
17 | { |
||
18 | /** @var MethodDescriptor $method */ |
||
19 | protected $method; |
||
20 | |||
21 | /** @var string[] $type an array of normalized types that should be in this Argument */ |
||
22 | protected $types = array(); |
||
23 | |||
24 | /** @var string|null $default the default value for an argument or null if none is provided */ |
||
25 | protected $default; |
||
26 | |||
27 | /** @var bool $byReference whether the argument passes the parameter by reference instead of by value */ |
||
28 | protected $byReference = false; |
||
29 | |||
30 | /** @var boolean Determines if this Argument represents a variadic argument */ |
||
31 | protected $isVariadic = false; |
||
32 | |||
33 | /** |
||
34 | * To which method does this argument belong to |
||
35 | * |
||
36 | * @param MethodDescriptor $method |
||
37 | */ |
||
38 | public function setMethod(MethodDescriptor $method) |
||
42 | |||
43 | /** |
||
44 | * {@inheritDoc} |
||
45 | */ |
||
46 | public function setTypes($types) |
||
50 | |||
51 | /** |
||
52 | * {@inheritDoc} |
||
53 | */ |
||
54 | public function getTypes() |
||
63 | |||
64 | /** |
||
65 | * @return null|ArgumentDescriptor |
||
66 | */ |
||
67 | public function getInheritedElement() |
||
81 | |||
82 | /** |
||
83 | * {@inheritDoc} |
||
84 | */ |
||
85 | public function setDefault($value) |
||
89 | |||
90 | /** |
||
91 | * {@inheritDoc} |
||
92 | */ |
||
93 | public function getDefault() |
||
97 | |||
98 | /** |
||
99 | * {@inheritDoc} |
||
100 | */ |
||
101 | public function setByReference($byReference) |
||
105 | |||
106 | /** |
||
107 | * {@inheritDoc} |
||
108 | */ |
||
109 | public function isByReference() |
||
113 | |||
114 | /** |
||
115 | * Sets whether this argument represents a variadic argument. |
||
116 | * |
||
117 | * @param boolean $isVariadic |
||
118 | * |
||
119 | * @return false |
||
120 | */ |
||
121 | public function setVariadic($isVariadic) |
||
125 | |||
126 | /** |
||
127 | * Returns whether this argument represents a variadic argument. |
||
128 | * |
||
129 | * @return boolean |
||
130 | */ |
||
131 | public function isVariadic() |
||
135 | } |
||
136 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..