Skip to content

Commit de089d4

Browse files
refactor: limits to ModelConfig type
Co-authored-by: Felix Arntz <[email protected]>
1 parent 6cdfde0 commit de089d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Providers/Contracts/ProviderInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ public static function metadata(): ProviderMetadata;
3434
* @since n.e.x.t
3535
*
3636
* @param string $modelId Model identifier.
37-
* @param ModelConfig|array<string,mixed> $modelConfig Model configuration.
37+
* @param ?ModelConfig $modelConfig Model configuration.
3838
* @return ModelInterface Model instance.
3939
* @throws InvalidArgumentException If model not found or configuration invalid.
4040
*/
41-
public static function model(string $modelId, $modelConfig = []): ModelInterface;
41+
public static function model(string $modelId, ?ModelConfig $modelConfig = null): ModelInterface;
4242

4343
/**
4444
* Gets provider availability checker.

0 commit comments

Comments
 (0)