Skip to content

Commit

Permalink
Test using \stdClass instead of anonymous class
Browse files Browse the repository at this point in the history
  • Loading branch information
kelunik committed Dec 13, 2019
1 parent cbef0db commit ffa08f3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/Loop/Internal/TimerQueue.php
Expand Up @@ -25,11 +25,7 @@ final class TimerQueue
*/
public function insert(Watcher $watcher, int $expiration)
{
$entry = new class {
public $watcher;
public $expiration;
};

$entry = new \stdClass;
$entry->watcher = $watcher;
$entry->expiration = $expiration;

Expand Down

0 comments on commit ffa08f3

Please sign in to comment.