From 4444f94fed596b75a60e6b04895e4c4b1ff5a496 Mon Sep 17 00:00:00 2001 From: Deeka Wong Date: Wed, 20 Dec 2023 12:21:16 +0800 Subject: [PATCH] Support customized local configuration files for PHPStan and PHPUnit (#502) * Support customized local configuration files for PHPStan and PHPUnit * Optimize * Fix return type declarations in Kafka and Log facades * Refactor array and collection mixins * Update type hint for process method in TaskHandleListener * Update CacheInterface and Cache class * Refactor ParameterParser class by removing unused code * Refactor Etcd and Nacos drivers, and fix EnvWriter return statement * Fix type hinting in exception handling functions * Fix column value retrieval in FastPaginate.php * Refactor validation rules in ValidationAspect.php * Update helper functions and fix deprecated functions * Refactor log writer to use null coalescing operator for default values * Fix code formatting and remove unused code * Update variable type in ResponseSequence class and fix factory function in Functions.php * Fix code inconsistencies and improve code readability * Update phpstan.neon.dist to include phpstan-baseline.neon This commit updates the phpstan.neon.dist file to include the phpstan-baseline.neon file. The previous include statement for vendor/phpstan/phpstan-deprecation-rules/rules.neon has been commented out. This change ensures that the phpstan-baseline.neon file is included in the analysis performed by vendor/bin/phpstan. * Update PHPStan configuration file * Fix isInstanceCall method logic * Refactor access log message formatting --------- Co-authored-by: Deeka Wong <8337659+huangdijia@users.noreply.github.com> --- src/AsyncQueue/ClosureJob.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AsyncQueue/ClosureJob.php b/src/AsyncQueue/ClosureJob.php index 296fe62..bfd3b00 100644 --- a/src/AsyncQueue/ClosureJob.php +++ b/src/AsyncQueue/ClosureJob.php @@ -80,7 +80,7 @@ protected function getInjections(array $definitions, string $callableName, array { $injections = []; - foreach ($definitions ?? [] as $pos => $definition) { + foreach ($definitions as $pos => $definition) { $value = $arguments[$pos] ?? $arguments[$definition->getMeta('name')] ?? null; if ($value === null) { if ($definition->getMeta('defaultValueAvailable')) {