swoole / swoole-src

🚀 Coroutine-based concurrency library for PHP
https://www.swoole.com
Apache License 2.0
18.47k stars 3.16k forks source link

Phpunit Deprecation #4764

Closed cesurapp closed 2 years ago

cesurapp commented 2 years ago
  1. What did you do? If possible, provide a simple script for reproducing the error.
    Empty test, no code. Symfony Project.
    bin/phpunit
  2. What did you expect to see?
3. What did you see instead?

`Other deprecation notices (3)

1x: Method "Iterator::current()" might add "mixed" as a native return type declaration in the future. Do the same in implementation "Swoole\ArrayObject" now to avoid errors or add an explicit @return annotation to suppress this message. 1x in IDE_PHPUnit_Loader::init

1x: Method "Iterator::key()" might add "mixed" as a native return type declaration in the future. Do the same in implementation "Swoole\ArrayObject" now to avoid errors or add an explicit @return annotation to suppress this message. 1x in IDE_PHPUnit_Loader::init

1x: Method "ArrayAccess::offsetExists()" might add "bool" as a native return type declaration in the future. Do the same in implementation "Swoole\ArrayObject" now to avoid errors or add an explicit @return annotation to suppress this message. 1x in IDE_PHPUnit_Loader::init`

4. What version of Swoole are you using (show your `php --ri swoole`)?

Swoole => enabled Author => Swoole Group hello@swoole.com Version => 4.8.10 Built => May 5 2022 13:46:41 coroutine => enabled with boost asm context kqueue => enabled rwlock => enabled http2 => enabled curl-native => enabled pcre => enabled zlib => 1.2.11 brotli => E16777225/D16777225 async_redis => enabled postgresql => 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 => 262144 => 262144

5. What is your machine environment used (show your `uname -a` & `php -v` & `gcc -v`) ?

Darwin 192.168.1.56 20.6.0 Darwin Kernel Version 20.6.0: Wed Jan 12 22:22:42 PST 2022; root:xnu-7195.141.19~2/RELEASE_X86_64 x86_64

PHP 8.1.4 (cli) (built: Mar 18 2022 09:46:02) (NTS) Copyright (c) The PHP Group Zend Engine v4.1.4, Copyright (c) Zend Technologies with Zend OPcache v8.1.4, Copyright (c), by Zend Technologies

Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1 Apple clang version 13.0.0 (clang-1300.0.29.30) Target: x86_64-apple-darwin20.6.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin

leocavalcante commented 2 years ago

Not sure if it is related to Swoole.

cesurapp commented 2 years ago

Not sure if it is related to Swoole.

https://github.com/openswoole/swoole-src/issues/219

leocavalcante commented 2 years ago

Got it. It is already in the library: https://github.com/swoole/library/blob/master/src/core/ArrayObject.php#L72 maybe just a new build is missing.

matyhtf commented 2 years ago

I can't reproduce this issue