Skip to content

Commit

Permalink
upgrade Swoole Library to v5.1.2
Browse files Browse the repository at this point in the history
Signed-off-by: Demin Yin <deminy@deminy.net>
  • Loading branch information
deminy committed Feb 1, 2024
1 parent d61cfae commit 33ec7af
Show file tree
Hide file tree
Showing 49 changed files with 1,062 additions and 1,380 deletions.
6 changes: 3 additions & 3 deletions src/swoole_library/src/__init__.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@

declare(strict_types=1);
return [
'name' => 'swoole',
'name' => 'swoole',
'checkFileChange' => !getenv('SWOOLE_LIBRARY_DEV'),
'output' => getenv('SWOOLE_DIR') . '/ext-src/php_swoole_library.h',
'stripComments' => false,
'output' => getenv('SWOOLE_DIR') . '/ext-src/php_swoole_library.h',
'stripComments' => false,
/* Notice: Sort by dependency */
'files' => [
# <basic> #
Expand Down
2 changes: 1 addition & 1 deletion src/swoole_library/src/alias.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

declare(strict_types=1);

if (SWOOLE_USE_SHORTNAME) {
if (SWOOLE_USE_SHORTNAME) { // @phpstan-ignore if.alwaysTrue
class_alias(Swoole\Coroutine\WaitGroup::class, Co\WaitGroup::class, true);
class_alias(Swoole\Coroutine\Server::class, Co\Server::class, true);
class_alias(Swoole\Coroutine\Server\Connection::class, Co\Server\Connection::class, true);
Expand Down
2 changes: 1 addition & 1 deletion src/swoole_library/src/alias_ns.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

use Swoole\Coroutine;

if (SWOOLE_USE_SHORTNAME) {
if (SWOOLE_USE_SHORTNAME) { // @phpstan-ignore if.alwaysTrue
function run(callable $fn, ...$args)
{
return \Swoole\Coroutine\run($fn, ...$args);
Expand Down
Loading

0 comments on commit 33ec7af

Please sign in to comment.