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