Commit Graph

35 Commits

Author SHA1 Message Date
李铭昕
07c4182e7e
Removed doctrine/annotations, please use PHP8 Attributes. (#4667) 2022-04-12 18:14:22 +08:00
Deeka Wong
6f946b8ad8
Optimized class Hyperf\Utils\Str whose methods padBoth padLeft and padRight support multibyte. (#4668) 2022-04-12 14:43:18 +08:00
Deeka Wong
27a8f74683
Make Hyperf\Utils\Stringable implements Stringable. (#4663)
* Make `Hyperf\Utils\Stringable` implements `Stringable`.

* Update phpstan.neon

Co-authored-by: 李铭昕 <715557344@qq.com>
2022-04-07 10:26:59 +08:00
沈唁
8e146554ac
Removed AliyunOssHook for hyperf/filesystem (#4623) 2022-03-23 17:04:34 +08:00
李铭昕
a8de513425
Changed return type to void for Hyperf\Event\Contract\ListenerInterface::process(). (#4611) 2022-03-18 09:55:36 +08:00
Deeka Wong
e9b7586710
Removed Hyperf\Utils\Context, please use Hyperf\Context\Context instead. (#4596) 2022-03-11 14:02:57 +08:00
李铭昕
e7548bfdf7
Fixed bug that PhpParser::getExprFromValue() does not support assoc array. (#4549) 2022-02-21 20:23:48 +08:00
Deeka Wong
fac58eaff9
Support callback conditions for Conditionable::when() and Conditionable::unless(). (#4523)
* Add Conditionable support for callback conditions

* Format code

Co-authored-by: 李铭昕 <715557344@qq.com>
2022-02-15 15:31:58 +08:00
李铭昕
00ca69a4a1
Upgrade the minimum php version to 8.0 for reactive-x. (#4502) 2022-02-07 15:48:35 +08:00
Deeka Wong
603d3be056
Use ?? instead of ?: for $callback when using Stringable::when(). (#4460)
* simplify whenEmpty & whenNotEmpty methods

* Use `??` instead of `?:` for `$callback` when using `Stringable::when()`.

Co-authored-by: 李铭昕 <715557344@qq.com>
2022-02-05 19:26:37 +08:00
李铭昕
30266882b8 Added Hyperf\Coordinator\Timer which can be stopped safely. 2022-02-01 16:32:56 +08:00
张子彬
8b1bc26283
Changed the default value to null for Hyperf\DbConnection\Db::__connection(). (#4495)
Co-authored-by: 李铭昕 <715557344@qq.com>
2022-02-01 12:34:22 +08:00
沈唁
5c8c3b0290
Add Hyperf\Utils\IPReader to get local IP (#4277) 2022-01-27 13:46:54 +08:00
Tall
854bfba503
Removed log warning from cache component when the key is greater than 64 characters. (#4487) 2022-01-26 10:54:31 +08:00
Daffy Weng
c5283b6007
修复Model::insertOrIgnore返回Builder对象的bug , 应该返回影响行数 (#4434) 2022-01-09 10:17:07 +08:00
李铭昕
ef47a76a60
Upgrade the minimum php version to 8.0 for scout. (#4400) 2021-12-27 17:14:07 +08:00
李铭昕
e15964fd57
Fixed bug that command gen:model does not adapt 3.0 (#4398) 2021-12-27 12:18:56 +08:00
李铭昕
dbd2f2a8f6
Optimized DataFormatterInterface which uses object instead of array as inputs. (#4367)
* Optimized code for `DataFormatterInterface`.

* Update CHANGELOG-3.0.md
2021-12-16 15:22:52 +08:00
李铭昕
02bbc9a8bc
Upgrade the minimum php version to 8.0 for load-balancer and redis. (#4359) 2021-12-15 13:55:43 +08:00
李铭昕
4b966949f2
Upgrade the minimum php version to 8.0 for model-listener and pool. (#4357) 2021-12-15 12:27:22 +08:00
pandaLIU
3a1a7ea4e4
Upgrade the minimum php version to 8.0 for kafka. (#4345)
Co-authored-by: 李铭昕 <715557344@qq.com>
2021-12-13 19:39:48 +08:00
李铭昕
de352ea1df
Fixed type error hint for JsonSerializable::jsonSerialize(). (#4340) 2021-12-11 09:47:27 +08:00
李铭昕
748fc22275
Upgraded psr/simple-cache to ^1.0|^2.0|^3.0 (#4323) 2021-12-07 12:26:20 +08:00
李铭昕
880b577510
Upgrade the minimum php version for memory and model-cache. 2021-12-07 11:22:25 +08:00
李铭昕
43f8907276
Support $suffix for trait StaticInstance. (#4304) 2021-12-01 14:12:08 +08:00
李铭昕
911ab1210e Hyperf\Utils\Contracts\Arrayable will be deprecated, please use Hyperf\Contract\Arrayable instead. 2021-11-23 20:00:06 +08:00
李铭昕
6edb9337da
Upgrade the minimum php version to 8.0 for guzzle. (#4276) 2021-11-22 11:24:46 +08:00
李铭昕
804c237b87
Changed the default priority of listener to 0 from 1. (#4269) 2021-11-18 11:07:53 +08:00
李铭昕
501de0c9c2
Update mix/redis-subscribe to mix/redis-subscriber. (#4232)
* update mix/redis-subscribe to mix/redis-subscriber

* Upgrade the minimum php version to 8.0 for socketio-server.

Co-authored-by: XuTongle <xutongle@msn.com>
2021-11-08 15:49:45 +08:00
李铭昕
dfded07b75
Split hyperf/coordinator from hyperf/utils. (#4225) 2021-11-05 16:06:17 +08:00
李铭昕
ae555051ce
Upgrade the minimum php version to 8.0 for db. (#4220) 2021-11-05 10:42:57 +08:00
李铭昕
2d800e17c4
Rename $circularDependences to $checkCircularDependencies for Dag. (#4214)
* Rename `$circularDependences` to `$checkCircularDependencies`.

* Update CHANGELOG-3.0.md
2021-11-04 11:50:02 +08:00
GanymedeNil
c2b4c0d7e9
Optimized code for nacos. (#4147)
You can use `http://xxx.com/yyy/` instead of `http://xxx.com:8848/` to connect `nacos`.

Co-authored-by: 李铭昕 <715557344@qq.com>
2021-11-02 20:37:59 +08:00
李铭昕
855e886ec6
Upgrade the minimum php version to 8.0 for async-queue. (#4199) 2021-11-02 16:57:36 +08:00
李铭昕
74a21bbab3
Optimized code about amqp and upgrade all requirements from v2.2 to v3.0 (#4196) 2021-11-02 15:06:17 +08:00