Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Events.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/**
* Register listeners and emit named events with optional event-name validation
*/
trait Events

Check failure on line 11 in src/Events.php

View workflow job for this annotation

GitHub Actions / PHP / Static analysis (8.2) / PHPStan 8.2

Trait ipl\Stdlib\Events is used zero times and is not analysed.

Check failure on line 11 in src/Events.php

View workflow job for this annotation

GitHub Actions / PHP / Static analysis (8.5) / PHPStan 8.5

Trait ipl\Stdlib\Events is used zero times and is not analysed.

Check failure on line 11 in src/Events.php

View workflow job for this annotation

GitHub Actions / PHP / Static analysis (8.4) / PHPStan 8.4

Trait ipl\Stdlib\Events is used zero times and is not analysed.

Check failure on line 11 in src/Events.php

View workflow job for this annotation

GitHub Actions / PHP / Static analysis (8.3) / PHPStan 8.3

Trait ipl\Stdlib\Events is used zero times and is not analysed.
{
use EventEmitterTrait {
EventEmitterTrait::on as private evenementUnvalidatedOn;
Expand Down Expand Up @@ -43,7 +43,7 @@
*
* @throws InvalidArgumentException If the event name is not valid
*/
public function on($event, callable $listener): static
public function on($event, callable $listener)
{
$this->assertValidEvent($event);
$this->evenementUnvalidatedOn($event, $listener);
Expand Down
Loading