File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ private function parseCheckCommand(): CommandInterface
110
110
return new HelpCommand ();
111
111
}
112
112
113
- $ threshold = $ parsedArgs ->options ['threshold ' ] ?? null ;
113
+ $ threshold = isset ( $ parsedArgs ->options ['threshold ' ]) ? intval ( $ parsedArgs -> options [ ' threshold ' ]) : null ;
114
114
115
115
return new CheckCommand ($ parsedArgs ->paths , $ threshold );
116
116
}
@@ -191,7 +191,7 @@ private function isOption(string $arg): bool
191
191
* オプション文字列をパースして名前と値を取得
192
192
*
193
193
* @param string $option オプション文字列
194
- * @return array{0: string, 1: mixed } [オプション名, オプション値]
194
+ * @return array{0: string, 1: string|bool } [オプション名, オプション値]
195
195
*/
196
196
private function parseOption (string $ option ): array
197
197
{
@@ -213,7 +213,7 @@ final class ParsedArguments
213
213
{
214
214
/**
215
215
* @param array<string> $paths パスのリスト
216
- * @param array<string, mixed > $options オプションのマップ
216
+ * @param array<string, string|int|bool|null > $options オプションのマップ
217
217
*/
218
218
public function __construct (
219
219
public readonly array $ paths ,
You can’t perform that action at this time.
0 commit comments