Skip to content

Commit 94872ba

Browse files
committed
Fix ResourceChangedEvent::getType
1 parent 5d92931 commit 94872ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Event/ResourceChangedEvent.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*/
2121
class ResourceChangedEvent extends Event
2222
{
23-
public function __construct(private readonly object $resource, string $type)
23+
public function __construct(private readonly object $resource, private readonly string $type)
2424
{
2525
}
2626

@@ -31,6 +31,6 @@ public function getResource(): object
3131

3232
public function getType(): string
3333
{
34-
return $this->getType();
34+
return $this->type;
3535
}
3636
}

0 commit comments

Comments
 (0)