Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP Warning + Fatal Error #176

Closed
lfluvisotto opened this issue Aug 2, 2024 · 1 comment
Closed

PHP Warning + Fatal Error #176

lfluvisotto opened this issue Aug 2, 2024 · 1 comment

Comments

@lfluvisotto
Copy link

lfluvisotto commented Aug 2, 2024

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
Copy link
Member

deminy commented Aug 2, 2024

Please check this comment for details.

@deminy deminy closed this as completed Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants