From 77f55941fa23ae8e833a9d6023e841837f482070 Mon Sep 17 00:00:00 2001 From: Sebastian Bergmann Date: Mon, 23 Dec 2024 07:11:49 +0100 Subject: [PATCH] Add missing parameter type declaration --- src/Framework/Attributes/CoversMethod.php | 2 +- src/Framework/Attributes/UsesMethod.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Framework/Attributes/CoversMethod.php b/src/Framework/Attributes/CoversMethod.php index 81a4e2c074b..4181239b9d8 100644 --- a/src/Framework/Attributes/CoversMethod.php +++ b/src/Framework/Attributes/CoversMethod.php @@ -33,7 +33,7 @@ * @param class-string $className * @param non-empty-string $methodName */ - public function __construct(string $className, $methodName) + public function __construct(string $className, string $methodName) { $this->className = $className; $this->methodName = $methodName; diff --git a/src/Framework/Attributes/UsesMethod.php b/src/Framework/Attributes/UsesMethod.php index c16f846be64..b1ee19b54d9 100644 --- a/src/Framework/Attributes/UsesMethod.php +++ b/src/Framework/Attributes/UsesMethod.php @@ -33,7 +33,7 @@ * @param class-string $className * @param non-empty-string $methodName */ - public function __construct(string $className, $methodName) + public function __construct(string $className, string $methodName) { $this->className = $className; $this->methodName = $methodName;