Skip to content

Commit d860412

Browse files
Update src/Symfony/Component/DependencyInjection/Attribute/AsAlias.php
Co-authored-by: Alexandre Daubois <2144837+alexandre-daubois@users.noreply.github.com>
1 parent 2020177 commit d860412

File tree

1 file changed

+1
-1
lines changed
  • src/Symfony/Component/DependencyInjection/Attribute

1 file changed

+1
-1
lines changed

src/Symfony/Component/DependencyInjection/Attribute/AsAlias.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ public function __construct(
3434
public bool $public = false,
3535
string|array $when = [],
3636
) {
37-
$this->when = is_array($when) ? $when : [$when];
37+
$this->when = (array) $when;
3838
}
3939
}

0 commit comments

Comments
 (0)