From fe5a37329d2bee6fce42249c36f896241dde39a5 Mon Sep 17 00:00:00 2001 From: Akihito Koriyama Date: Sat, 11 Jan 2025 09:41:23 +0900 Subject: [PATCH] Update method parameters to allow nullable types Changed the `onGet` method parameters to explicitly use nullable types for better type clarity and consistency. This update ensures stricter adherence to PHP type declarations and improves code reliability. --- tests/Fake/FakeVendor/Sandbox/Resource/App/Rparam/Greeting.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Fake/FakeVendor/Sandbox/Resource/App/Rparam/Greeting.php b/tests/Fake/FakeVendor/Sandbox/Resource/App/Rparam/Greeting.php index 030895b7..d258a524 100644 --- a/tests/Fake/FakeVendor/Sandbox/Resource/App/Rparam/Greeting.php +++ b/tests/Fake/FakeVendor/Sandbox/Resource/App/Rparam/Greeting.php @@ -21,7 +21,7 @@ class Greeting extends ResourceObject * @Named("appName=BEAR\Resource\Annotation\AppName") */ #[ResourceParam(uri: 'app://self/rparam/login#login_id', param: 'name')] - public function onGet(string $name = null, string $appName = null) + public function onGet(?string $name = null, ?string $appName = null) { $this->body = [ 'name' => $name,