Skip to content

Commit

Permalink
Fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
barw4 committed Sep 11, 2024
1 parent 3d01d41 commit 847a54d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* Compiler pass for the ibexa.rest.output.value_object.visitor tag.
* Maps a fully qualified class to a value object visitor.
*/
final class ValueObjectVisitorResolverPass implements CompilerPassInterface
final readonly class ValueObjectVisitorResolverPass implements CompilerPassInterface
{
public const string OUTPUT_VALUE_OBJECT_VISITOR_SERVICE_TAG = 'ibexa.rest.output.value_object.visitor';

Expand Down
4 changes: 1 addition & 3 deletions src/contracts/Output/ValueObjectVisitorResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@

final class ValueObjectVisitorResolver implements ValueObjectVisitorResolverInterface
{
/**
* @var array<class-string, ValueObjectVisitor>
*/
/** @var array<class-string, ValueObjectVisitor> */
private array $visitors;

/**
Expand Down
1 change: 1 addition & 0 deletions tests/lib/Output/VisitorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ protected function getVisitorMock(): Visitor&MockObject
$this->getNormalizerMock(),
$this->getEncoderMock(),
$this->getValueObjectVisitorResolverMock(),
'json',
],
)
->getMock();
Expand Down

0 comments on commit 847a54d

Please sign in to comment.