swoole / library

📚 Swoole Library
https://wiki.swoole.com/#/library
Apache License 2.0
242 stars 57 forks source link

PHP Warning + Fatal Error #176

Closed lfluvisotto closed 4 months ago

lfluvisotto commented 4 months ago

PHP 8.2.21 (cli) (built: Jul 4 2024 16:26:49) (NTS) Copyright (c) The PHP Group Zend Engine v4.2.21, Copyright (c) Zend Technologies with Zend OPcache v8.2.21, Copyright (c), by Zend Technologies

===

Composer version 2.7.2 2024-03-11 17:12:18 PHP version 8.2.21 (/usr/bin/php8.2)

===

Installing swoole/library in https://github.com/magento/magento2 project.

composer require swoole/library

./composer.json has been updated
Running composer update swoole/library
Gathering patches from patch file.
Loading composer repositories with package information
Updating dependencies
Lock file operations: 1 install, 0 updates, 0 removals
  - Locking swoole/library (v5.1.3)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
Gathering patches from patch file.
Gathering patches for dependencies. This might take a minute.
  - Installing swoole/library (v5.1.3): Extracting archive
Generating autoload files
148 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
Failed to set PHP CodeSniffer installed_paths Config
> ([ $COMPOSER_DEV_MODE -eq 0 ] || vendor/bin/phpcs --config-set installed_paths ../../magento/magento-coding-standard/,../../phpcompatibility/php-compatibility)
PHP Warning:  Constant SWOOLE_LIBRARY already defined in /home/lfluv/projects/magento2os/vendor/swoole/library/src/constants.php on line 12
PHP Fatal error:  Cannot redeclare Swoole\Coroutine\run() (previously declared in @swoole/library/core/Coroutine/functions.php:16) in /home/lfluv/projects/magento2os/vendor/swoole/library/src/core/Coroutine/functions.php on line 24
Script ([ $COMPOSER_DEV_MODE -eq 0 ] || vendor/bin/phpcs --config-set installed_paths ../../magento/magento-coding-standard/,../../phpcompatibility/php-compatibility) handling the phpcs-config event returned with error code 255
Script @phpcs-config was called via post-update-cmd
deminy commented 4 months ago

Please check this comment for details.