mirror of
https://github.com/jikan-me/jikan-rest.git
synced 2025-02-20 11:23:35 +08:00
added missing type hints
This commit is contained in:
parent
2156c6bfe1
commit
fdbefd86d3
@ -13,7 +13,7 @@ class CharacterFactory extends JikanModelFactory
|
||||
|
||||
protected $model = Character::class;
|
||||
|
||||
protected function definitionInternal()
|
||||
protected function definitionInternal(): array
|
||||
{
|
||||
$mal_id = $this->createMalId();
|
||||
$url = $this->createMalUrl($mal_id, "character");
|
||||
|
@ -11,7 +11,7 @@ abstract class JikanModelFactory extends Factory
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function definition()
|
||||
public function definition(): array
|
||||
{
|
||||
/**
|
||||
* @var Serializer $serializer
|
||||
|
Loading…
x
Reference in New Issue
Block a user