Skip to content

Commit

Permalink
phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
SychO9 committed Jun 21, 2024
1 parent a03104d commit 96b8b92
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
5 changes: 5 additions & 0 deletions framework/core/src/Database/MigrationRepositoryInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ public function log(string $file, ?string $extension = null): void;
*/
public function delete(string $file, ?string $extension = null): void;

/**
* Create the migration repository table.
*/
public function createRepository(): void;

/**
* Determine if the migration repository exists.
*/
Expand Down
4 changes: 1 addition & 3 deletions framework/core/src/Database/Migrator.php
Original file line number Diff line number Diff line change
Expand Up @@ -260,10 +260,8 @@ protected function note(string $message): void

/**
* Get the migration repository instance.
*
* @return MigrationRepositoryInterface
*/
public function getRepository()
public function getRepository(): MigrationRepositoryInterface
{
return $this->repository;
}
Expand Down
7 changes: 5 additions & 2 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ parameters:
- extensions/tags/extend.php
excludePaths:
- *.blade.php
checkMissingIterableValueType: false
checkGenericClassInNonGenericObjectType: false
databaseMigrationsPath: ['framework/core/migrations']
ignoreErrors:
-
identifier: missingType.iterableValue
-
identifier: missingType.generics

0 comments on commit 96b8b92

Please sign in to comment.