Update codestyle based on updated Symfony rules (#229)
This commit is contained in:
parent
e485fde727
commit
c081b90d74
1 changed files with 165 additions and 168 deletions
|
|
@ -47,7 +47,7 @@ class Prompt implements \JsonSerializable
|
|||
) {
|
||||
if (null !== $this->arguments) {
|
||||
foreach ($this->arguments as $arg) {
|
||||
if (!($arg instanceof PromptArgument)) {
|
||||
if (!$arg instanceof PromptArgument) {
|
||||
throw new InvalidArgumentException('All items in Prompt "arguments" must be PromptArgument instances.');
|
||||
}
|
||||
}
|
||||
|
|
@ -64,7 +64,7 @@ class Prompt implements \JsonSerializable
|
|||
}
|
||||
$arguments = null;
|
||||
if (isset($data['arguments']) && \is_array($data['arguments'])) {
|
||||
$arguments = array_map(fn (array $argData) => PromptArgument::fromArray($argData), $data['arguments']);
|
||||
$arguments = array_map(static fn (array $argData) => PromptArgument::fromArray($argData), $data['arguments']);
|
||||
}
|
||||
|
||||
if (!empty($data['_meta']) && !\is_array($data['_meta'])) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue