Commit Graph

268 Commits

Author SHA1 Message Date
daninedd
e4aa9d21fd
Fixed bug that mix-subscriber cannot work caused by the empty auth. 2023-02-11 13:19:35 +08:00
Onix Systems PHP
0fa5341354
Fixed bug that non-existing method exec called by SwoolePostgresqlClient. (#5386) 2023-02-11 13:16:17 +08:00
她和她的猫
ad68f682a2
Fixed bug that hyperf/config-apollo cannot work. 2023-02-11 13:09:45 +08:00
李铭昕
34c083ad0c
Support validation for swagger. (#5395) 2023-02-11 13:05:18 +08:00
李铭昕
e1b7001483 Auto register route for swagger component. 2023-02-11 10:40:29 +08:00
李铭昕
fdfc920494
Added log records when nacos heartbeat failed. (#5379) 2023-02-09 10:52:38 +08:00
Deeka Wong
7885e6ba43
Support coroutine server stats for hyperf/metric (#5376) 2023-02-09 09:23:10 +08:00
pandaLIU
cad883ce9a
Support server settings for SwowServer. (#5373) 2023-02-08 22:23:25 +08:00
Robert
276c70cc1f
Fixed bug that the current service XXX is persistent service, can't register ephemeral instance. (#5361) 2023-02-08 16:21:41 +08:00
Deeka Wong
1b47584aa8
Added forceDeleting event (#5366)
Co-authored-by: 李铭昕 <715557344@qq.com>
2023-02-08 14:42:10 +08:00
李铭昕
ee32a98dff
Release v3.0.5 (#5363) 2023-02-05 19:17:43 +08:00
Deeka Wong
31822a9f14
Adds addRestoreOrCreate extension to SoftDeletingScope (#5338) 2023-02-05 10:57:17 +08:00
Deeka Wong
34fdaa327f
Fix the bug that can't stop when an exception occurs inside $closure (#5357) 2023-02-04 14:57:02 +08:00
Deeka Wong
49d53fd4ff
Fix the bug that undefined swoole_cpu_num() on swow (#5355) 2023-02-04 13:33:19 +08:00
Deeka Wong
17f22ea9ba
Adds ResumeExitCoordinatorListener (#5349)
Co-authored-by: 李铭昕 <715557344@qq.com>
2023-02-04 13:03:38 +08:00
宣言就是Siam
613e10e116
Compatible with tcp://host:port configuration redis sentry address (#5342)
Co-authored-by: 沈唁 <52o@qq52o.cn>
Co-authored-by: 李铭昕 <715557344@qq.com>
2023-02-03 09:56:53 +08:00
李铭昕
07f390d699
Release v3.0.4 (#5336) 2023-01-22 22:39:20 +08:00
kingIZZZY
7ab6583361
Fixed bug that PgSQLSwooleConnection::unprepared cannot work. (#5332)
Co-authored-by: 李铭昕 <715557344@qq.com>
2023-01-20 21:48:44 +08:00
李铭昕
4e39308887
Fixed bug that database cannot work when disconnect failed. (#5333) 2023-01-19 14:18:37 +08:00
李铭昕
3281097820
Release v3.0.3 (#5328) 2023-01-16 14:12:35 +08:00
她和她的猫
dc3188c74f
Fixed bug that PostgresSQL can't work when create connection timed out. (#5327)
Co-authored-by: 李铭昕 <715557344@qq.com>
2023-01-15 19:18:00 +08:00
Deeka Wong
82b685ce44
Collect the metric of Server::stats by loop (#5326) 2023-01-13 21:07:36 +08:00
Daffy Weng
6d09f1f852
Fixed bug that kafka consumer cannot work when don't set memberId and so on. (#5322)
Co-authored-by: 李铭昕 <715557344@qq.com>
2023-01-12 22:49:58 +08:00
sunsgne
0f7c6ec81c
Added method Hyperf\Nacos\Provider\ConfigProvider::listener(). (#5323)
Co-authored-by: 李铭昕 <715557344@qq.com>
2023-01-12 22:31:04 +08:00
李铭昕
6b13fc4001
Fixed bug that database cannot work when disconnect caused by connection reset by mysql. (#5324)
* Fixed bug that database cannot work when disconnect caused by connection reset by mysql.

* Update CHANGELOG-3.0.md
2023-01-12 18:04:57 +08:00
李铭昕
21d77fff35
Fixed bug that rate-limit cannot work when using php 8.1 (#5318) 2023-01-11 17:18:46 +08:00
Deeka Wong
56ef1330db
Improve hyperf/metric (#5315) 2023-01-11 13:07:11 +08:00
Deeka Wong
38bd8d66bc
Adds Timer::stats() (#5314) 2023-01-11 12:01:35 +08:00
Deeka Wong
0332011f1b
Change the query for instance for grafana, Compatible with CoroutinueServer (#5311) 2023-01-10 17:38:57 +08:00
Deeka Wong
b57143da5d
Fix the UI bug that can not filter worker and pool on Prometheus (#5310) 2023-01-10 11:56:05 +08:00
Deeka Wong
44b5d59efc
Fixed the bug that Undefined property $workerId on CoroutinueServer (#5309) 2023-01-10 10:30:39 +08:00
Deeka Wong
74396b8166
Fix the parameter $timeout of Timer::tick() in hyperf/metric (#5307)
Co-authored-by: 李铭昕 <715557344@qq.com>
2023-01-09 17:14:40 +08:00
李铭昕
9b7dd2cd46
Log records when release to pool failed. (#5306) 2023-01-09 16:49:03 +08:00
李铭昕
28058e1a23
Fixed bug that commit failed when has no active transaction for polardb. (#5305) 2023-01-09 16:28:48 +08:00
李铭昕
e976e54d5b
Release v3.0.1 (#5295) 2023-01-09 08:06:39 +08:00
Deeka Wong
2d0d67b556
Support Swow for hyperf/metric (#5292)
* Replace `Swoole\Timer` to `Hyperf\Coordinator\Timer`.

* Support Swow.

Co-authored-by: 李铭昕 <715557344@qq.com>
2023-01-06 15:51:18 +08:00
李铭昕
04daff0af4
Fixed bug that server cannot be closed friendly for swow. (#5289) 2023-01-05 11:18:43 +08:00
李铭昕
0138c0ca12
Added log records about the exception message when emit failed. (#5287) 2023-01-04 19:57:10 +08:00
李铭昕
c55ad3f3f9
Release v3.0.0 (#5273) 2023-01-03 12:46:13 +08:00
黄朝晖
4aa060a0d5 Update 2023-01-03 07:13:43 +08:00
张城铭
33db7494b8
Abstract methods should not be rewritten by proxies (#5268)
Co-authored-by: 李铭昕 <715557344@qq.com>
2023-01-01 13:13:29 +08:00
她和她的猫
f604d258f7
Fixed bug that method Request::parseHost not working when host is invalid. (#5142)
Co-authored-by: hexianghui <hexianghui@kkguan.com>
Co-authored-by: 李铭昕 <715557344@qq.com>
2022-12-27 14:08:25 +08:00
李铭昕
67ad6b7250
Added requirement ext-posix for watcher. (#5261) 2022-12-27 10:58:03 +08:00
pandaLIU
6fdb95d534
Fixed bug that generate rpc-client failed when the interface has parent interfaces. (#5252)
* Added test cases.

Co-authored-by: 李铭昕 <715557344@qq.com>
2022-12-22 16:16:49 +08:00
pandaLIU
38e2e2f31c
Added defer_release config for hyperf/db. (#5250) 2022-12-20 17:18:22 +08:00
Deeka Wong
c07162dc5b
Support PHP 8.2 (#5087)
Co-authored-by: 李铭昕 <715557344@qq.com>
2022-12-10 21:24:37 +08:00
Deeka Wong
6e7317b9e1
Throw exception when column id is not existed (#5239)
Co-authored-by: 李铭昕 <715557344@qq.com>
2022-12-10 20:14:47 +08:00
李铭昕
afe17c45b2
Fixed bug that proxy class will be generated failed when using parameters who allow null in constructor. 2022-11-28 18:55:55 +08:00
李铭昕
fe5abff840
Added Hyperf\WebSocketServer\Sender::getResponses(). (#5227) 2022-11-28 16:56:48 +08:00
李铭昕
afab4e0e37
Removed WARNING log when amqp connection restart. (#5226) 2022-11-28 11:33:43 +08:00
耐小心
70141405b5
Fixed bug that KeepaliveConnection::isTimeout() can't work when using swow. (#5223) 2022-11-26 19:47:54 +08:00
kingIZZZY
b5bfe53b10
Fixed bug that PGSqlSwooleConnection::affectingStatement() can't work when the sql is wrong. (#5221)
* Return value must be of type int, bool returned

`TypeError: Hyperf\Database\PgSQL\PostgreSqlSwooleExtConnection::affectingStatement(): Return value must be of type int, bool returned`

The hyperf database method has type hint 'int' but Swoole\Coroutine\PostgreSQLStatement::affectedRows() can return bool https://github.com/swoole/swoole-src/blob/master/ext-src/swoole_postgresql_coro.cc#L1242

* Initial fix didn't solve the exception

Seems maybe the $this->run() method might also return bool which mismatches the function return type hint

Co-authored-by: 李铭昕 <715557344@qq.com>
2022-11-25 10:48:22 +08:00
李铭昕
d3b543cabf Added document about CacheAhead. 2022-11-22 12:45:19 +08:00
李铭昕
5e27db78c7
Support the transformation of object type to AST nodes. (#5206) 2022-11-18 17:11:18 +08:00
lihq1403
7c92e08003
Transform the type of param $server in Hyperf\WebSocketServer\Server::deferOnOpen() to mixed. (#5204)
Co-authored-by: 李铭昕 <715557344@qq.com>
2022-11-17 16:56:13 +08:00
宣言就是Siam
67fec55758
Fixed bug that RedisSentinel can't support empty password. (#5199)
Co-authored-by: 李铭昕 <715557344@qq.com>
2022-11-16 10:16:48 +08:00
Deeka Wong
1e75b0fad0
Added option config for command server:watch. (#5186) 2022-11-09 18:33:14 +08:00
Deeka Wong
3f779abf69
Added $dictionary for Str::slug, your can rewrite some tags easily. (#5160)
Co-authored-by: 李铭昕 <715557344@qq.com>
2022-10-29 09:45:19 +08:00
Lucas Vinicius
bee4f7b270
Added Pipeline::thenReturn() method to run pipes and return the result (#5163)
Co-authored-by: 李铭昕 <715557344@qq.com>
2022-10-28 10:40:46 +08:00
Wen
9ed8f8aa45
Fixed bug that the exit code of command does not work when the exception code isn't int. (#5132)
Co-authored-by: 李铭昕 <715557344@qq.com>
2022-10-11 19:30:18 +08:00
她和她的猫
677c9da9bc
Add error checking for PostgreSQLStatement::execute method. (#5121) 2022-10-11 10:37:54 +08:00
李铭昕
2f6810ac3b
Fixed bug that the tag continue cannot work when using view-engine. (#5100) 2022-09-22 11:17:07 +08:00
Deeka Wong
8770b96c12
Move MessageBag and MessageProvider to contract from utils (#5092) 2022-09-20 10:38:43 +08:00
Deeka Wong
1aeffaba46
Move Jsonable and Xmlable to contract from utils. (#5091) 2022-09-18 10:26:01 +08:00
Mr.唐
cd0e32a148
Catch exception for function defer by default. (#5079)
* Use `(string) $throwable` instead of `sprintf` for `Hyperf\ExceptionHandler\Formatter\FormatterInterface::format()`.

Co-authored-by: tangwei <tangwei8@lenovo.com>
Co-authored-by: 李铭昕 <715557344@qq.com>
2022-09-07 10:40:54 +08:00
李铭昕
95cfba42cf
Optimized code about creating exception from another exception. (#5078) 2022-09-06 15:34:23 +08:00
Deeka Wong
781b0677dc
Support Swow for hyperf/signal (#5070)
Co-authored-by: 李铭昕 <715557344@qq.com>
2022-09-05 14:31:26 +08:00
李铭昕
e57bab8f1a
Added config symfony.event.enable to control whether to use SymfonyEventDispatcher. (#5061) 2022-08-27 14:42:23 +08:00
luxin
2663c28a0d
Support parsing IPv6 host. (#5052)
Co-authored-by: houzhouyang <810921248@qq.com>
Co-authored-by: 李铭昕 <715557344@qq.com>
2022-08-24 10:53:05 +08:00
tiefeng
7bd7681da5
Added Hyperf\Database\Model\Concerns\HasAttributes::getRawOriginal(). (#5046)
Co-authored-by: 李铭昕 <715557344@qq.com>
2022-08-22 19:58:23 +08:00
Kids Return
d3f7d1e35f
[3.0]Fixed grpc server StatsCode and serializeMessage (#5036)
Co-authored-by: pandaLIU <563883861@qq.com>
2022-08-19 22:36:06 +08:00
她和她的猫
28e82535c3
Support for SSL encrypted connection to Redis. (#5007)
Co-authored-by: 李铭昕 <715557344@qq.com>
2022-08-17 17:05:07 +08:00
她和她的猫
f0566ee962
Support disable hyperf/amqp via configuration file. (#4992)
Co-authored-by: 李铭昕 <715557344@qq.com>
2022-08-17 15:51:10 +08:00
李铭昕
86e1548386
Removed useless method call() from callable function. (#5029) 2022-08-17 15:17:48 +08:00
Ahmad Mustapha
7c0ec6f7e9
Check validity of file descriptor before sending message to it. (#5017) 2022-08-15 22:19:47 +08:00
Deeka Wong
7c2793bf7e
Removed array type of Trace Annotation, because don't support array. (#5008) 2022-08-15 21:00:34 +08:00
kingIZZZY
733e4e5185
Fixed bug that connection->select() cannot work for database-pgsql. (#5016)
Co-authored-by: 李铭昕 <715557344@qq.com>
2022-08-15 19:50:37 +08:00
李铭昕
cb142acca0 Update CHANGELOG-3.0.md 2022-08-10 00:10:02 +08:00
李铭昕
0575f13a91
Support Swow for nsq. (#4990) 2022-08-06 15:09:08 +08:00
李铭昕
303d0ea364
Support Swow for hyperf/crontab. (#4989) 2022-08-06 11:46:53 +08:00
她和她的猫
0b04e4b0ce
Support Swow for hyperf/pool. (#4988)
Co-authored-by: 李铭昕 <715557344@qq.com>
2022-08-06 11:30:54 +08:00
李铭昕
2f6dee5b6f
Support Swow for hyperf/retry. (#4984) 2022-08-05 07:19:22 +08:00
Deeka Wong
226d5dc21d
Confirm before proceeding with the action when using ConfirmableTrait, such as migrate command.
Co-authored-by: 李铭昕 <715557344@qq.com>
2022-08-04 23:18:06 +08:00
张城铭
ca95ce03c6
Depend on interface instead of instantiation (#4978)
Co-authored-by: 李铭昕 <715557344@qq.com>
2022-08-03 19:26:13 +08:00
李铭昕
a6aa10796c
Don't support database commands by default, please require hyperf/devtool or set them in autoload/commands. (#4979) 2022-08-03 19:00:16 +08:00
张城铭
a0ab07f5e8
Removed proxy mode from Hyperf\Di\ClassLoader and Optimized Composer::getLoader(). (#4961)
Co-authored-by: 李铭昕 <715557344@qq.com>
2022-07-29 12:52:11 +08:00
李铭昕
7216ef29b0
Don't write pid when the settings.pid_file is null. (#4952) 2022-07-21 20:01:42 +08:00
李铭昕
a1279885ef
Removed useless call() from Coroutine::create(). (#4949) 2022-07-21 14:46:58 +08:00
Tall Libra
bd03e7ab41
Throw NoNodesAvailableException when cannot select any node from load balancer. (#4934)
Co-authored-by: 李铭昕 <715557344@qq.com>
2022-07-19 22:14:36 +08:00
张城铭
2c34969896
Fixed memory leak caused by an exception which occurred in Parallel. (#4940)
Co-authored-by: assert <zhangchengming@kkguan.com>
Co-authored-by: 李铭昕 <715557344@qq.com>
2022-07-19 21:55:50 +08:00
李铭昕
2e7256cb01
Renamed getFormatedKey() to getFormattedKey(). (#4930) 2022-07-15 17:10:49 +08:00
李铭昕
99d32f7cce
Support TcpServer for Swow. (#4924) 2022-07-13 20:46:57 +08:00
Wisp X
2389fdf38e
Fixed bug that the routing path is wrong when the routing prefix is end of '/'.
Co-authored-by: 李铭昕 <715557344@qq.com>
2022-07-13 09:27:36 +08:00
李铭昕
134cfaa383
Fixed SocketFactory::bindAfterRefreshed. (#4921) 2022-07-12 13:48:16 +08:00
李铭昕
2fe743dd8a
Fixed bug that rpc connections can't refresh themselves after nodes changed. (#4919) 2022-07-12 13:18:35 +08:00
李铭昕
1f709b7c83
Added afterRefreshed() to register a hook which to be run after refresh nodes. (#4918) 2022-07-12 12:46:09 +08:00
李铭昕
52bcee01b5
Support Swow for load-balancer. (#4917) 2022-07-12 11:51:41 +08:00
李铭昕
9e131caaea
Fixed bug that websocket connection will be closed after 10s when using Swow. (#4912)
* Fixed bug that ws connection will be closed after 10s.

* Update CHANGELOG-3.0.md
2022-07-09 13:19:52 +08:00
Wisp X
3f10e2ab33
Fixed bug that method ComponentTagCompiler::escapeSingleQuotesOutsideOfPhpBlocks() cannot work. (#4910) 2022-07-08 11:55:04 +08:00
她和她的猫
8b67301dfb
Added ConsumerMessageInterface::getNums() to change the number of amqp consumer by dynamically. (#4909)
Co-authored-by: 李铭昕 <715557344@qq.com>
2022-07-08 11:40:48 +08:00
Deeka Wong
13ab808087
Added Db::beforeExecuting() to register a hook which to be run just before a database query is executed. (#4908)
Co-authored-by: 李铭昕 <715557344@qq.com>
2022-07-08 11:16:41 +08:00
她和她的猫
5ed82f8c0f
Removed the redundant parameters of method HasEvents::fireModelEvent(). (#4905)
* Fixed typo in `file.php`

Co-authored-by: 李铭昕 <715557344@qq.com>
2022-07-07 09:16:20 +08:00
李铭昕
c5aef1f78c
Upgrade league/flysystem to ^1.0|^2.0|^3.0. (#4903) 2022-07-06 14:32:28 +08:00
Deeka Wong
6dd600803c
Fixed bug that RedisAdapter::mixSubscribe cannot work cased by redis prefix. (#4895) 2022-07-04 12:23:29 +08:00
Farmer
73a8058ab8
Fixed bug that RedisAdapter::mixSubscribe cannot work cased by redis prefix. (#4892)
Co-authored-by: 李铭昕 <715557344@qq.com>
2022-07-02 09:59:40 +08:00
张城铭
b394845103
Removed useless Hyperf\Di\ClassLoader::$proxies, because merge it into Composer\Autoload\ClassLoader::$classMap. (#4888)
Co-authored-by: assert <zhangchengming@kkguan.com>
Co-authored-by: 李铭昕 <715557344@qq.com>
2022-06-30 18:34:16 +08:00
张城铭
9c3da93e03
Fixed bug that ProxyTrait::__getParamsMap can not work when using trait alias. (#4885)
Co-authored-by: 李铭昕 <715557344@qq.com>
2022-06-30 09:58:36 +08:00
李铭昕
723d4fd4cc
Support ignoreAnnotations for Annotation Reader. (#4880) 2022-06-26 07:58:47 +08:00
Deeka Wong
ae39272443
Use the original style when regenerating models. (#4875) 2022-06-24 15:54:39 +08:00
李铭昕
7a05c92d21
Use wait instead of parallel for coroutine style tcp server. (#4874) 2022-06-23 17:40:15 +08:00
李铭昕
08443db222
Added Swow support for hyperf/websocket-server. (#4873) 2022-06-23 17:19:07 +08:00
Deeka Wong
91f40be1a6
The $scene allowed to be NULL. (#4869)
Co-authored-by: 李铭昕 <715557344@qq.com>
2022-06-23 11:06:05 +08:00
Deeka Wong
1c94256348
No need to check Redis::isConnected().
Because it could be connected defer or reconnected after disconnected.
2022-06-22 17:18:50 +08:00
Deeka Wong
ef269c74f6
Added Annotation Scene which use scene in FormRequest easily. (#4866)
Co-authored-by: awengan <goto8848@qq.com>
Co-authored-by: 李铭昕 <715557344@qq.com>
2022-06-22 17:09:45 +08:00
李铭昕
bb3f034c7d
Fixed bug that the socket-io server always restart when using coroutine style server. (#4854) 2022-06-20 09:53:54 +08:00
李铭昕
c8d4d666aa
Added NullDisableEventDispatcher to disable event dispatcher by default. (#4852)
Co-authored-by: huangdijia <huangdijia@gmail.com>
2022-06-16 22:54:21 +08:00
李铭昕
624f0d158f
Fixed bug that prometheus server will not be closed automatically when using command which enable event dispatcher. (#4851) 2022-06-16 21:05:28 +08:00
Deeka Wong
b135ac887c
Changed $value.timeout to $options.timeout for annotation CircuitBreaker. (#4848) 2022-06-16 14:36:55 +08:00
Deeka Wong
002c8b03de
Fixed the lost description when using property $description and $signature for hyperf/command. (#4835) 2022-06-14 09:35:03 +08:00
李铭昕
b183430e61
Upgraded monolog/monolog to ^2.7|^3.1. (#4825) 2022-06-10 16:21:17 +08:00
李铭昕
517396566e
Replaced Swoole\Coroutine\Channel by Hyperf\Engine\Channel. (#4808) 2022-06-04 15:51:29 +08:00
李铭昕
a2352024b3
Support Swow for WaitGroup. (#4804) 2022-06-03 22:41:50 +08:00
李铭昕
a98c2d8919
Support Swow for hyperf/amqp. (#4756) 2022-05-17 10:17:04 +08:00
李铭昕
aeab9ba40a
Support Swow for Hyperf\Utils\Coroutine\Locker. (#4757) 2022-05-17 08:26:40 +08:00
Deeka Wong
4dcd47d42d
Adjust the order of injections for controllers to avoid inject null preferentially. (#4715) 2022-04-30 11:56:44 +08:00
Kids Return
2271f4323f
Support coroutine style server for socketio-server. (#4700) 2022-04-30 11:47:25 +08:00
凌の雨尘
5c0fed9ea8
Optimized code of Str::contains Str::startsWith and Str::endsWith based on PHP8. (#4547)
Co-authored-by: aeisen <linyucheng@kkguan.com>
Co-authored-by: 李铭昕 <715557344@qq.com>
2022-04-17 21:00:09 +08:00
她和她的猫
62687ba059
When the route annotation path is null, path defaults to the method name. (#4658)
Co-authored-by: 李铭昕 <715557344@qq.com>
2022-04-17 18:56:43 +08:00
李铭昕
f80e6a6d4e
Added SafeCaller to avoid server shutdown which caused by exceptions. (#4688) 2022-04-15 18:00:56 +08:00
李铭昕
ca2a03df6e
Stop processes which controlled by ProcessManager when server shutdown. (#4680) 2022-04-13 21:28:07 +08:00
李铭昕
cd85b15d7c
Close all another servers when one of them closed. (#4679) 2022-04-13 20:34:09 +08:00
李铭昕
17ad62cd22
Support event dispatcher for command by default. (#4678) 2022-04-13 18:33:32 +08:00
李铭昕
b814749bd3
Update document about how to upgrade to 3.0. (#4671) 2022-04-12 18:41:01 +08:00
李铭昕
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