mirror of
https://github.com/danog/psalm-plugin-laravel.git
synced 2024-11-26 12:24:50 +01:00
fix psalm issues
This commit is contained in:
parent
0892cd08ea
commit
3f0479a931
@ -45,6 +45,7 @@
|
||||
},
|
||||
"scripts": {
|
||||
"analyze": "psalm",
|
||||
"analyse": "psalm",
|
||||
"lint": "phpcs -n",
|
||||
"lint-fix": "phpcbf -n",
|
||||
"test": "codecept run --skip-group skip",
|
||||
|
@ -22,4 +22,5 @@
|
||||
<file>tests</file>
|
||||
<exclude-pattern>src/cache/</exclude-pattern>
|
||||
<exclude-pattern>tests/_support/</exclude-pattern>
|
||||
<exclude-pattern>tests/Support/</exclude-pattern>
|
||||
</ruleset>
|
||||
|
@ -1,5 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<files>
|
||||
<files psalm-version="4.22.0@fc2c6ab4d5fa5d644d8617089f012f3bb84b8703">
|
||||
<file src="src/Providers/ApplicationProvider.php">
|
||||
<MissingFile occurrences="1">
|
||||
<code>require $applicationPath</code>
|
||||
</MissingFile>
|
||||
</file>
|
||||
<file src="src/Providers/ModelStubProvider.php">
|
||||
<PossiblyUndefinedMethod occurrences="1">
|
||||
<code>databasePath</code>
|
||||
|
@ -1,6 +1,5 @@
|
||||
<?xml version="1.0"?>
|
||||
<psalm
|
||||
totallyTyped="false"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns="https://getpsalm.org/schema/config"
|
||||
xsi:schemaLocation="https://getpsalm.org/schema/config"
|
||||
|
@ -38,7 +38,7 @@ class FakeModelsCommand extends ModelsCommand
|
||||
*
|
||||
* @param Model $model
|
||||
*/
|
||||
protected function getPropertiesFromTable($model): void
|
||||
public function getPropertiesFromTable($model): void
|
||||
{
|
||||
$table_name = $model->getTable();
|
||||
|
||||
|
@ -551,4 +551,4 @@ class Module extends BaseModule
|
||||
);
|
||||
$this->debug($this->remainingErrors());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user