Skip to content

Commit 9bc8472

Browse files
committed
Fix prefixed tag behaviour
1 parent 7efc33c commit 9bc8472

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: src/Tag/Factory/PrefixedTagFactory.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@ public function __construct(
1919

2020
public function register(array|string $tags, FactoryInterface $delegate): void
2121
{
22-
foreach ($this->prefixes as $prefix) {
23-
foreach ((array) $tags as $tag) {
22+
foreach ((array) $tags as $tag) {
23+
$this->delegate->register($tag, $delegate);
24+
25+
foreach ($this->prefixes as $prefix) {
2426
$this->delegate->register($prefix . $tag, $delegate);
2527
}
2628
}

0 commit comments

Comments
 (0)