Skip to content

Commit

Permalink
Support php73 (#74)
Browse files Browse the repository at this point in the history
* Support PHP 7.3

Co-authored-by: Deeka Wong <8337659+huangdijia@users.noreply.github.com>
  • Loading branch information
huangdijia and huangdijia authored Dec 8, 2022
1 parent 488101b commit 963f0c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Aspect/UdpSocketAspect.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function process(ProceedingJoinPoint $proceedingJoinPoint)

/** @var string $chunk */
$chunk = $proceedingJoinPoint->arguments['keys']['chunk'] ?? '';
[$ip, $port] = (fn () => [$this->ip, $this->port])->call($proceedingJoinPoint->getInstance());
[$ip, $port] = (function () { return [$this->ip, $this->port]; })->call($proceedingJoinPoint->getInstance());

$socket = new Client(SWOOLE_SOCK_UDP);
$socket->connect($ip, $port, 0.5);
Expand Down

0 comments on commit 963f0c4

Please sign in to comment.