We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d92931 commit 94872baCopy full SHA for 94872ba
src/Event/ResourceChangedEvent.php
@@ -20,7 +20,7 @@
20
*/
21
class ResourceChangedEvent extends Event
22
{
23
- public function __construct(private readonly object $resource, string $type)
+ public function __construct(private readonly object $resource, private readonly string $type)
24
25
}
26
@@ -31,6 +31,6 @@ public function getResource(): object
31
32
public function getType(): string
33
34
- return $this->getType();
+ return $this->type;
35
36
0 commit comments