Yii Request Body Parser 1.2
2025-09-23
1314次浏览
Yii RequestBody Parser1.2 版本发布了,此版本包含以下更新:
- 将最低 PHP 版本提升至 8.1;
- 将 composer.json 中的 PHP 版本约束修改为
8.1 - 8.4; - 为
JsonParser构造函数的depth参数添加 Psalm 类型int<1, 2147483647>; - 在
JsonParser、BadRequestHandler和RequestBodyParser类中使用提升的只读属性; - 对
RequestBodyParser进行小幅重构:使用str_contains()函数替代strpos(),使用::class替代get_class(); - 显式将参数标记为可为空;
- 显式添加传递依赖
psr/http-factory。
新闻归档
热门标签
- yii3
- 扩展
- 发布
- yii2
- debug
- view
- auth client
- html
- bootstrap
- release
- redis
- Yii 1.1
- apidoc
- mongodb
- http
- db
- validation
- cache
- Yii 2.0
- runner
- extensions
- console
- gii
- error handler
- mailer
- http 客户端
- queue
- twig
- translator
- hydrator
- widget
- sphinx
- log
- assets
- config
- router
- middleware
- symfonymailer
- elasticsearch
- widgets
- swiftmailer
- imagine
- 图书
- rbac
- swagger
- data
- csrf
- logging
- fastroute
- application