File tree Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -163,12 +163,11 @@ public function __construct($options = null)
163
163
* this method will be called at most once per constraint instance and
164
164
* option name.
165
165
*
166
- * @param string $option The option name
167
- * @param mixed $value The value to set
166
+ * @param mixed $value The value to set
168
167
*
169
168
* @throws InvalidOptionsException If an invalid option name is given
170
169
*/
171
- public function __set ($ option , $ value )
170
+ public function __set (string $ option , $ value )
172
171
{
173
172
if ('groups ' === $ option ) {
174
173
$ this ->groups = (array ) $ value ;
@@ -194,7 +193,7 @@ public function __set($option, $value)
194
193
*
195
194
* @internal this method should not be used or overwritten in userland code
196
195
*/
197
- public function __get ($ option )
196
+ public function __get (string $ option )
198
197
{
199
198
if ('groups ' === $ option ) {
200
199
$ this ->groups = [self ::DEFAULT_GROUP ];
@@ -210,7 +209,7 @@ public function __get($option)
210
209
*
211
210
* @return bool
212
211
*/
213
- public function __isset ($ option )
212
+ public function __isset (string $ option )
214
213
{
215
214
return 'groups ' === $ option ;
216
215
}
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ public function __construct($options = null)
71
71
}
72
72
}
73
73
74
- public function __set ($ option , $ value )
74
+ public function __set (string $ option , $ value )
75
75
{
76
76
if ('maxSize ' === $ option ) {
77
77
$ this ->normalizeBinaryFormat ($ value );
@@ -82,7 +82,7 @@ public function __set($option, $value)
82
82
parent ::__set ($ option , $ value );
83
83
}
84
84
85
- public function __get ($ option )
85
+ public function __get (string $ option )
86
86
{
87
87
if ('maxSize ' === $ option ) {
88
88
return $ this ->maxSize ;
@@ -91,7 +91,7 @@ public function __get($option)
91
91
return parent ::__get ($ option );
92
92
}
93
93
94
- public function __isset ($ option )
94
+ public function __isset (string $ option )
95
95
{
96
96
if ('maxSize ' === $ option ) {
97
97
return true ;
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ class Valid extends Constraint
23
23
{
24
24
public $ traverse = true ;
25
25
26
- public function __get ($ option )
26
+ public function __get (string $ option )
27
27
{
28
28
if ('groups ' === $ option ) {
29
29
// when this is reached, no groups have been configured
You can’t perform that action at this time.
0 commit comments