Skip to content

Commit

Permalink
FIX Respect strict-typing of Factory interface (#620)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli authored Jul 12, 2024
1 parent 7078c36 commit e5b927b
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 = []): ?Image_Backend
{
/** @var AssetContainer|null $assetContainer */
$assetContainer = reset($params);
Expand Down

0 comments on commit e5b927b

Please sign in to comment.