From 486eb74b5ef9851a5b019ce65b20e062a86b7211 Mon Sep 17 00:00:00 2001 From: Yurun Date: Sat, 27 Apr 2024 10:05:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 3 +++ src/Server/Http/Middleware/ActionMiddleware.php | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 08f3fb891..1bece66a4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -352,6 +352,9 @@ jobs: uses: shogo82148/actions-setup-redis@v1 with: redis-version: "6.x" + - name: Brew + run: | + brew install pcre - name: Get Openssl Dir id: opecssl-dir run: echo "path=$(brew --prefix openssl@1.1)" >> $GITHUB_OUTPUT diff --git a/src/Server/Http/Middleware/ActionMiddleware.php b/src/Server/Http/Middleware/ActionMiddleware.php index 85ba1446d..14fa0161b 100644 --- a/src/Server/Http/Middleware/ActionMiddleware.php +++ b/src/Server/Http/Middleware/ActionMiddleware.php @@ -204,6 +204,10 @@ private function prepareActionParams(Request $request, RouteResult $routeResult) $headers[$name] = implode(', ', $values); } } + else + { + $extractData = []; + } /** @var ActionMethodItem[] $actionMethodCache */ foreach ($actionMethodCache as $actionMethodCacheItem)