spatie / async

Easily run code asynchronously
https://spatie.be/en/opensource/php
MIT License
2.65k stars 179 forks source link

php 8.1.10 is error #211

Closed jian-kuang closed 1 year ago

jian-kuang commented 1 year ago

Cannot assign Laravel\SerializableClosure\Serializers\Native to property Symfony\Component\Console\Input\InputArgument::$suggestedValues of type Closure|array

at vendor/laravel/serializable-closure/src/Serializers/Native.php:286 282▕ if (is_array($value) || is_object($value)) { 283▕ static::wrapClosures($value, $storage); 284▕ } 285▕ ➜ 286▕ $property->setValue($data, $value); 287▕ } 288▕ } while ($reflection = $reflection->getParentClass()); 289▕ } 290▕ }

  +11 vendor frames 

12 [internal]:0 Laravel\SerializableClosure\Serializers\Native::__serialize()

  +1 vendor frames 

14 [internal]:0

AlexVanderbist commented 1 year ago

Could you please provide example code, including the PHP version and package version you're using? It would be even better if you could create a pull request with a failing test. Thank you!