Skip to content

Commit

Permalink
FIX Respect strict-typing of Factory interface
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Jul 4, 2024
1 parent 94c3089 commit 2859b9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ImageBackendFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function __construct(Factory $creator)
* @param array $params The constructor parameters.
* @return object The created service instances.
*/
public function create($service, array $params = [])
public function create(string $service, array $params = []): object
{
/** @var AssetContainer|null $assetContainer */
$assetContainer = reset($params);
Expand Down

0 comments on commit 2859b9a

Please sign in to comment.