-
出现这样类型的代码:
```
var_dump((string) (new \stdClass()));
```
导致服务重启
-
环境:php7.4,hyperf 2.0.11 ,daodao97/apidog 1.5.17
按照部署文档:
# 1、有多个servers ,在apidog.php配置了
![1640167224(1)](https://user-images.githubusercontent.com/50315515/147075503-43582b9b-394e-4920-9713-6e40…
-
PHP Fatal error: Uncaught ReflectionException: Method index does not exist in /home/vagrant/hyperf-test/vendor/hyperf/di/src/ReflectionManager.php:45
Stack trace:
#0 /home/vagrant/hyperf-test/vendo…
-
**代码片段:**
@FormData(key="duration|时长", rule="required|min:1")
**问题:**
duration字段小于min设置的1值时并没有校验。
**备注:**
我使用的是 daodao97/apidog 包的验证器,地址:https://github.com/daodao97/apidog
而apidog包使用的是hype…
-
Execute the command and paste the result below.
Command: `uname -a && php -v && composer info | grep hyperf && php --ri swoole`
这程序2.1版本 咋这么多问题 [2021-08-01 11:23:55 *43895.12] NOTICE request is i…
-
[root@localhost www.bjxmqy.com]# composer update -o
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Continue as root/super user [yes]?
Loading composer reposit…
-
-
-
一开始这个问题其实并不严重 但是当我需要使用中间件来通过token 验证用户时 发现了这个问题
`
/**
* @PostApi(path="/refresh_token", description="刷新token")
* @ApiResponse(code="200", description="请求成功", schema={
* "qid":"5fe97d21…
-
`@Header(key="Authorization|接口访问凭证", rule="required")`
在有传Authorization的情况,依然会提示。原因是getHeaders会把得到key是小写
```
if ($header_rules) {
$headers = $request->getHeaders();
…