Skip to content

Commit 2300c3c

Browse files
committed
Sorted args PsrContainerTypeBuilder::__construct
1 parent 56039f4 commit 2300c3c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

example/03.types/06.custom-type-psr-container.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function cast(mixed $value, Context $context): string
7070
delegate: new StandardPlatform(),
7171
types: [
7272
// Additional type
73-
new PsrContainerTypeBuilder('custom-string', $container, MyNonEmptyStringType::class),
73+
new PsrContainerTypeBuilder('custom-string', MyNonEmptyStringType::class, $container),
7474
],
7575
));
7676

src/Type/Builder/PsrContainerTypeBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ class PsrContainerTypeBuilder extends NamedTypeBuilder
2121
*/
2222
public function __construct(
2323
array|string $names,
24-
protected readonly ContainerInterface $container,
2524
protected readonly string $serviceId,
25+
protected readonly ContainerInterface $container,
2626
) {
2727
parent::__construct($names);
2828
}

0 commit comments

Comments
 (0)