From ca43c20aeb03a53a7ee5ad60a108e55c3475f5c9 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Tue, 9 Jul 2024 10:12:07 +1200 Subject: [PATCH] FIX Respect strict-typing of Factory interface --- src/Model/Delete/DeletePolicyFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/Delete/DeletePolicyFactory.php b/src/Model/Delete/DeletePolicyFactory.php index 04b61fc1..b16f3a0a 100644 --- a/src/Model/Delete/DeletePolicyFactory.php +++ b/src/Model/Delete/DeletePolicyFactory.php @@ -20,7 +20,7 @@ class DeletePolicyFactory implements Factory * @param array $params The constructor parameters. * @return DeletePolicy The created service instances. */ - public function create($service, array $params = []) + public function create(string $service, array $params = []): DeletePolicy { /** @var DataObject $object */ $object = reset($params);