李帅西

Results 13 comments of 李帅西

有时间试试这样。 swoole >= v5.1.0,https://github.com/mongodb/laravel-mongodb,改一下链接创建使用pdo_odbc。 能用告诉我一下,用https://github.com/mongodb/mongo-php-library + Task 真的心累,时时刻刻怕不小心序列化了IO。

虽然swoole没有明确区分配置项,但是 task_enable_coroutine 应该属于 swoole server 的配置,而不应该属于 prot 的配置。 从配置文件有 $config['server']['settings'] 和 $config['server']['servers'][]['settings'] 两层设计来看,代码没有问题,部分配置就不应该出现在$config['server']['servers'][]['settings']。 还是建议使用 $server['setting']判断,因为也许会出现下面的配置 ```php 'settings'=>[ 'task_enable_coroutine'=>true, 'task_use_object'=>false, ], ```

`/** @var array{"lastThrowable":Throwable} $context */`

这就是个注释,#[Constants]以后,所有这种类型的注释,都可以get @Message. getMessage() @Title getTitle() @XXX getXXX()

> As a dev that actually made a maker for forge with the use of ESM syntax and a requirement of using ESM to load it, I've also [made an...

https://github.com/zircote/swagger-php/blob/0d35ed22dbc87d78740bb8941a8c7b53a060cded/src/Analysers/AttributeAnnotationFactory.php#L41-L48 My custom annotations do not inherit from `OpenApi\Annotations\AbstractAnnotation`, so do not need `newInstance`, process by the framework's annotation analyzer.

This is what I need, I think it can be designed to be more flexible. Like: ```php $attributeArgs = ['IgnoreAnnotationClass1','IgnoreAnnotationClass2']; foreach ($reflector->getAttributes() as $attribute) { if (in_array($attribute::class, $attributeArgs, true)) {...