Skip to content
This repository has been archived by the owner on Sep 10, 2024. It is now read-only.

Is this a BUG? #472

Closed
liamhao opened this issue Mar 13, 2021 · 2 comments
Closed

Is this a BUG? #472

liamhao opened this issue Mar 13, 2021 · 2 comments
Labels

Comments

@liamhao
Copy link
Contributor

liamhao commented Mar 13, 2021

Make sure you read Issues Guideline and answer these questions before submitting your issue. Thanks!
(Any non-English issues will be closed immediately.)

  1. Please provide your PHP and Swoole version. (php -v and php --ri swoole)

php -v:

PHP 8.0.3 (cli) (built: Mar  2 2021 16:37:06) ( NTS gcc x86_64 )
Copyright (c) The PHP Group
Zend Engine v4.0.3, Copyright (c) Zend Technologies

php --ri swoole

Swoole => enabled
Author => Swoole Team <team@swoole.com>
Version => 4.6.4
Built => Mar 11 2021 14:37:01
coroutine => enabled with boost asm context
trace_log => enabled
epoll => enabled
eventfd => enabled
signalfd => enabled
cpu_affinity => enabled
spinlock => enabled
rwlock => enabled
sockets => enabled
openssl => OpenSSL 1.0.2k-fips  26 Jan 2017
http2 => enabled
json => enabled
curl-native => enabled
pcre => enabled
zlib => 1.2.7
mutex_timedlock => enabled
pthread_barrier => enabled
futex => enabled
mysqlnd => enabled
async_redis => enabled

Directive => Local Value => Master Value
swoole.enable_coroutine => On => On
swoole.enable_library => On => On
swoole.enable_preemptive_scheduler => Off => Off
swoole.display_errors => On => On
swoole.use_shortname => On => On
swoole.unixsock_buffer_size => 8388608 => 8388608
  1. Please provide your Laravel/Lumen version.

php artisan --version

Laravel Framework 8.26.1
  1. Which release version of this package are you using?

composer.json

"require": {
    "swooletw/laravel-swoole": "^2.7"
}
  1. What did you do? If possible, provide a recipe for reproducing the error.

image

  1. What did you expect to see?

just donot see this ErrorException forever.

  1. What did you see instead?

image

@Arkanius Arkanius added the bug label Mar 15, 2021
@Arkanius
Copy link
Contributor

It is really a bug related to PHP8 deprecation.

see https://github.com/swooletw/laravel-swoole/pull/4739

@Arkanius
Copy link
Contributor

KalebNiven added a commit to KalebNiven/laravel-swoole that referenced this issue Jun 16, 2023
add `?string` type to `$message`. This style of function declaration [has been deprecated in PHP 8.0](https://www.php.net/manual/en/migration80.deprecated.php).

solve issue: **[Is this a BUG?](swooletw/laravel-swoole#472
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants