Skip to content

Commit

Permalink
qa: apply CS rules
Browse files Browse the repository at this point in the history
Removes a usage of `get_class()` in favor of `::class`.

Signed-off-by: Matthew Weier O'Phinney <matthew@weierophinney.net>
  • Loading branch information
weierophinney committed Nov 7, 2024
1 parent e45185a commit 8065544
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ListenerProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
use Phly\KeepAChangelog\Common\EventInterface;
use Psr\EventDispatcher\ListenerProviderInterface;

use function get_class;
use function is_object;

class ListenerProvider implements ListenerProviderInterface
Expand Down Expand Up @@ -164,7 +163,7 @@ class ListenerProvider implements ListenerProviderInterface

public function getListenersForEvent(object $event): iterable
{
$type = get_class($event);
$type = $event::class;
if (! isset($this->listeners[$type])) {
return [];
}
Expand Down

0 comments on commit 8065544

Please sign in to comment.