File tree Expand file tree Collapse file tree 3 files changed +14
-15
lines changed Expand file tree Collapse file tree 3 files changed +14
-15
lines changed Original file line number Diff line number Diff line change @@ -141,11 +141,19 @@ abstract class AbstractFlags implements ParserInterface
141
141
*/
142
142
protected $ settings = [
143
143
'hasShorts ' => false ,
144
+ // some setting for render help
144
145
'argNameLen ' => 12 ,
145
146
'optNameLen ' => 12 ,
146
147
'descNlOnOptLen ' => self ::OPT_MAX_WIDTH ,
147
148
];
148
149
150
+ /**
151
+ * Delay call validators after parsed. TODO
152
+ *
153
+ * @var bool
154
+ */
155
+ protected $ delayValidate = false ;
156
+
149
157
// -------------------- settings for parse option --------------------
150
158
151
159
/**
Original file line number Diff line number Diff line change 7
7
*/
8
8
interface ValueInterface
9
9
{
10
- public function setValue ();
10
+ /**
11
+ * @param mixed $value
12
+ *
13
+ * @return mixed
14
+ */
15
+ public function setValue ($ value );
11
16
12
17
public function getValue ();
13
18
}
Original file line number Diff line number Diff line change @@ -36,12 +36,6 @@ class SFlags extends AbstractFlags
36
36
*/
37
37
private static $ std ;
38
38
39
- /**
40
- * @var callable
41
- * @psalm-var callable(mixed $value, string $type): mixed
42
- */
43
- protected $ valueFilter ;
44
-
45
39
// ------------------------ opts ------------------------
46
40
47
41
/**
@@ -804,12 +798,4 @@ public function getOptDefines(): array
804
798
{
805
799
return $ this ->optDefines ;
806
800
}
807
-
808
- /**
809
- * @param callable $valueFilter
810
- */
811
- public function setValueFilter (callable $ valueFilter ): void
812
- {
813
- $ this ->valueFilter = $ valueFilter ;
814
- }
815
801
}
You can’t perform that action at this time.
0 commit comments