mirror of
https://github.com/flarum/core.git
synced 2025-08-02 22:47:33 +02:00
phpstan
This commit is contained in:
@@ -26,6 +26,11 @@ interface MigrationRepositoryInterface
|
||||
*/
|
||||
public function delete(string $file, ?string $extension = null): void;
|
||||
|
||||
/**
|
||||
* Create the migration repository table.
|
||||
*/
|
||||
public function createRepository(): void;
|
||||
|
||||
/**
|
||||
* Determine if the migration repository exists.
|
||||
*/
|
||||
|
@@ -260,10 +260,8 @@ class Migrator
|
||||
|
||||
/**
|
||||
* Get the migration repository instance.
|
||||
*
|
||||
* @return MigrationRepositoryInterface
|
||||
*/
|
||||
public function getRepository()
|
||||
public function getRepository(): MigrationRepositoryInterface
|
||||
{
|
||||
return $this->repository;
|
||||
}
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user