File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -69,7 +69,8 @@ public function __destruct()
6969
7070 public function subscribe (\Closure $ callback ): string
7171 {
72- $ id = $ this ->nextId ++;
72+ $ id = $ this ->nextId ;
73+ \PHP_VERSION_ID >= 80300 ? $ this ->nextId = \str_increment ($ this ->nextId ) : ++$ this ->nextId ;
7374
7475 if ($ this ->exception ) {
7576 EventLoop::queue ($ callback , $ this ->exception );
Original file line number Diff line number Diff line change @@ -58,7 +58,8 @@ private function getException(): CancelledException
5858
5959 public function subscribe (\Closure $ callback ): string
6060 {
61- $ id = $ this ->nextId ++;
61+ $ id = $ this ->nextId ;
62+ \PHP_VERSION_ID >= 80300 ? $ this ->nextId = \str_increment ($ this ->nextId ) : ++$ this ->nextId ;
6263
6364 if ($ this ->requested ) {
6465 $ exception = $ this ->getException ();
Original file line number Diff line number Diff line change @@ -67,7 +67,8 @@ public function __destruct()
6767 */
6868 public function subscribe (\Closure $ callback ): string
6969 {
70- $ id = self ::$ nextId ++;
70+ $ id = self ::$ nextId ;
71+ \PHP_VERSION_ID >= 80300 ? $ this ->nextId = \str_increment ($ this ->nextId ) : ++$ this ->nextId ;
7172
7273 $ this ->handled = true ; // Even if unsubscribed later, consider the future handled.
7374
You can’t perform that action at this time.
0 commit comments