Skip to content

Commit

Permalink
refactor: add onChallenge
Browse files Browse the repository at this point in the history
  • Loading branch information
cydrickn committed May 10, 2023
1 parent 977b6ed commit 9396a56
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ composer.phar
/vendor/
/build/
/examples/
/.idea/
.phpunit.result.cache
.phpunit.cache
phpunit.xml.bak
Expand Down
2 changes: 1 addition & 1 deletion bin/phpunit.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<?php

$status = 0;
Co\run(function () use (&$status) {
\Swoole\Coroutine::run(function () use (&$status) {
global $argc, $argv;
try {
require __DIR__ . '/../vendor/bin/phpunit';
Expand Down
1 change: 1 addition & 0 deletions src/Peer.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class Peer
protected Session $session;
protected EventDispatcher $eventDispatcher;
protected SerializerInterface $serializer;
protected mixed $onChallenge = null;

protected string $realm;
protected string $path;
Expand Down

0 comments on commit 9396a56

Please sign in to comment.