Skip to content

Commit

Permalink
chore(template): Add return type in Laravel 8.x template.
Browse files Browse the repository at this point in the history
  • Loading branch information
TheDoctor0 committed Dec 27, 2020
1 parent 2cf03a9 commit 37e2fc9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class UserFactory extends Factory
*
* @return array
*/
public function definition()
public function definition(): array
{
return [
'name' => $this->faker->name,
Expand Down
2 changes: 1 addition & 1 deletion resources/views/class-factory.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class {{ $reflection->getShortName() }}Factory extends Factory
*
* @return array
*/
public function definition()
public function definition(): array
{
return [
@foreach($properties as $name => $property)
Expand Down
2 changes: 1 addition & 1 deletion src/Console/GenerateFactoryCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ protected function registerCustomTypes(AbstractSchemaManager $schema): void
return;
}

$platform->registerDoctrineTypeMapping('enum', 'enum');
$platform->registerDoctrineTypeMapping('enum', 'customEnum');
$platformName = $platform->getName();
$customTypes = $this->laravel['config']->get("ide-helper.custom_db_types.{$platformName}", []);

Expand Down

0 comments on commit 37e2fc9

Please sign in to comment.