File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4141 git config --global core.eol lf
4242
4343 - name : Checkout code
44- uses : actions/checkout@v2
44+ uses : actions/checkout@v5
4545
4646 - name : Setup PHP
4747 uses : shivammathur/setup-php@v2
5353 run : echo "::set-output name=dir::$(composer config cache-dir)"
5454
5555 - name : Cache dependencies
56- uses : actions/cache@v2
56+ uses : actions/cache@v4
5757 with :
5858 path : ${{ steps.composer-cache.outputs.dir }}
5959 key : composer-${{ runner.os }}-${{ matrix.php-version }}-${{ hashFiles('**/composer.*') }}-${{ matrix.composer-flags }}
Original file line number Diff line number Diff line change 1818 </errorLevel >
1919 </StringIncrement >
2020
21+ <UndefinedFunction >
22+ <errorLevel type =" suppress" >
23+ <referencedFunction name =" str_increment" />
24+ </errorLevel >
25+ </UndefinedFunction >
26+
2127 <RedundantConditionGivenDocblockType >
2228 <errorLevel type =" suppress" >
2329 <directory name =" src" />
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 ? self ::$ nextId = \str_increment (self ::$ nextId ) : ++self ::$ 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