fix psalm issues

This commit is contained in:
Niels Vanpachtenbeke 2022-03-20 23:02:31 +01:00
parent 0892cd08ea
commit 3f0479a931
6 changed files with 10 additions and 4 deletions

View File

@ -45,6 +45,7 @@
},
"scripts": {
"analyze": "psalm",
"analyse": "psalm",
"lint": "phpcs -n",
"lint-fix": "phpcbf -n",
"test": "codecept run --skip-group skip",

View File

@ -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>

View File

@ -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>

View File

@ -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"

View File

@ -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();

View File

@ -551,4 +551,4 @@ class Module extends BaseModule
);
$this->debug($this->remainingErrors());
}
}
}