Skip to content

Commit

Permalink
Merge pull request #866 from creative-commoners/pulls/8/strict-typing…
Browse files Browse the repository at this point in the history
…-factory

FIX Respect strict-typing of Factory interface
  • Loading branch information
emteknetnz authored Jul 12, 2024
2 parents a35f91d + ca43c20 commit 07fee74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Model/Delete/DeletePolicyFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 07fee74

Please sign in to comment.