Skip to content

Commit

Permalink
Update phpcs, psalm, phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jan 23, 2024
1 parent 67436e5 commit e827ae6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 24 deletions.
15 changes: 0 additions & 15 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@ parameters:
count: 1
path: src/Command/BakeMigrationSnapshotCommand.php

-
message: "#^Method Migrations\\\\Db\\\\Adapter\\\\AdapterFactory\\:\\:getAdapter\\(\\) should return Migrations\\\\Db\\\\Adapter\\\\AdapterInterface but returns object\\.$#"
count: 1
path: src/Db/Adapter/AdapterFactory.php

-
message: "#^Unsafe usage of new static\\(\\)\\.$#"
count: 1
Expand Down Expand Up @@ -75,16 +70,6 @@ parameters:
count: 2
path: src/Db/Adapter/SqlserverAdapter.php

-
message: "#^Parameter \\#1 \\$adapter of method Phinx\\\\Migration\\\\MigrationInterface\\:\\:setAdapter\\(\\) expects Phinx\\\\Db\\\\Adapter\\\\AdapterInterface, Migrations\\\\Db\\\\Adapter\\\\AdapterInterface given\\.$#"
count: 2
path: src/Migration/Environment.php

-
message: "#^Parameter \\#1 \\$adapter of method Phinx\\\\Seed\\\\SeedInterface\\:\\:setAdapter\\(\\) expects Phinx\\\\Db\\\\Adapter\\\\AdapterInterface, Migrations\\\\Db\\\\Adapter\\\\AdapterInterface given\\.$#"
count: 1
path: src/Migration/Environment.php

-
message: "#^Possibly invalid array key type Cake\\\\Database\\\\Schema\\\\TableSchemaInterface\\|string\\.$#"
count: 2
Expand Down
10 changes: 5 additions & 5 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
<code><![CDATA[isset($this->output)]]></code>
</RedundantPropertyInitializationCheck>
</file>
<file src="src/Db/Adapter/AdapterFactory.php">
<PropertyTypeCoercion>
<code><![CDATA[$this->adapters]]></code>
</PropertyTypeCoercion>
</file>
<file src="src/Db/Adapter/AdapterWrapper.php">
<DeprecatedMethod>
<code>getQueryBuilder</code>
Expand Down Expand Up @@ -69,11 +74,6 @@
</MissingParamType>
</file>
<file src="src/Migration/Environment.php">
<InvalidArgument>
<code><![CDATA[$this->getAdapter()]]></code>
<code><![CDATA[$this->getAdapter()]]></code>
<code><![CDATA[$this->getAdapter()]]></code>
</InvalidArgument>
<RedundantPropertyInitializationCheck>
<code><![CDATA[isset($this->adapter)]]></code>
</RedundantPropertyInitializationCheck>
Expand Down
4 changes: 0 additions & 4 deletions tests/TestCase/Migration/EnvironmentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,11 @@

namespace Test\Phinx\Migration;

use Migrations\Db\Adapter\AdapterFactory;
use Migrations\Db\Adapter\PdoAdapter;
use Migrations\Db\Adapter\PhinxAdapter;
use Migrations\Migration\Environment;
use PDO;
use Phinx\Migration\AbstractMigration;
use Phinx\Migration\MigrationInterface;
use Phinx\Seed\AbstractSeed;
use Phinx\Seed\SeedInterface;
use PHPUnit\Framework\TestCase;
use RuntimeException;
use stdClass;
Expand Down

0 comments on commit e827ae6

Please sign in to comment.