PHPStan Level 9
ucan-lab opened this issue · 0 comments
ucan-lab commented
------ ---------------------------------------------------------------------------------------------------------------------------------------------------
Line src/Dacapo/Application/UseCase/DacapoCommandUseCase.php
------ ---------------------------------------------------------------------------------------------------------------------------------------------------
31 Parameter #2 $attributes of static method UcanLab\LaravelDacapo\Dacapo\Domain\Schema\Schema::factory() expects array<string, mixed>, mixed given.
------ ---------------------------------------------------------------------------------------------------------------------------------------------------
------ -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Line src/Dacapo/Domain/Schema/Column/Column.php
------ -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
67 Parameter #1 $name of static method UcanLab\LaravelDacapo\Dacapo\Domain\Schema\Column\ColumnType\ColumnTypeFactory::factory() expects string, mixed given.
71 Parameter #2 $array of function array_map expects array, mixed given.
89 Parameter #2 $value of static method UcanLab\LaravelDacapo\Dacapo\Domain\Schema\Column\ColumnModifier\ColumnModifierFactory::factory() expects bool|int|string|null, mixed given.
------ -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
------ -----------------------------------------------------------------------------------------------
Line src/Dacapo/Domain/Schema/Column/ColumnModifier/ColumnModifierArgs/MixedColumnModifierArgs.php
------ -----------------------------------------------------------------------------------------------
28 Parameter #2 ...$values of function sprintf expects bool|float|int|string|null, mixed given.
------ -----------------------------------------------------------------------------------------------
------ --------------------------------------------------------------------------------------------------------------------------------------------------------
Line src/Dacapo/Domain/Schema/ForeignKey/Reference.php
------ --------------------------------------------------------------------------------------------------------------------------------------------------------
37 Parameter #1 $columns of class UcanLab\LaravelDacapo\Dacapo\Domain\Schema\ForeignKey\Reference constructor expects array<int, string>, mixed given.
38 Parameter #2 $references of class UcanLab\LaravelDacapo\Dacapo\Domain\Schema\ForeignKey\Reference constructor expects array<int, string>, mixed given.
39 Parameter #3 $table of class UcanLab\LaravelDacapo\Dacapo\Domain\Schema\ForeignKey\Reference constructor expects string, mixed given.
40 Parameter #4 $name of class UcanLab\LaravelDacapo\Dacapo\Domain\Schema\ForeignKey\Reference constructor expects string|null, mixed given.
------ --------------------------------------------------------------------------------------------------------------------------------------------------------
------ -----------------------------------------------------------------------------------------------------------------------------------------------------------
Line src/Dacapo/Domain/Schema/ForeignKey/ReferenceAction.php
------ -----------------------------------------------------------------------------------------------------------------------------------------------------------
36 Parameter #1 $onUpdateAction of class UcanLab\LaravelDacapo\Dacapo\Domain\Schema\ForeignKey\ReferenceAction constructor expects string|null, mixed given.
37 Parameter #2 $onDeleteAction of class UcanLab\LaravelDacapo\Dacapo\Domain\Schema\ForeignKey\ReferenceAction constructor expects string|null, mixed given.
------ -----------------------------------------------------------------------------------------------------------------------------------------------------------
------ ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Line src/Dacapo/Domain/Schema/IndexModifier/IndexModifier.php
------ ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
40 Parameter #1 $name of static method UcanLab\LaravelDacapo\Dacapo\Domain\Schema\IndexModifier\IndexModifierType\IndexModifierTypeFactory::factory() expects string, mixed given.
48 Parameter #2 $columns of class UcanLab\LaravelDacapo\Dacapo\Domain\Schema\IndexModifier\IndexModifier constructor expects array<int, string>, mixed given.
49 Parameter #3 $name of class UcanLab\LaravelDacapo\Dacapo\Domain\Schema\IndexModifier\IndexModifier constructor expects string|null, mixed given.
50 Parameter #4 $algorithm of class UcanLab\LaravelDacapo\Dacapo\Domain\Schema\IndexModifier\IndexModifier constructor expects string|null, mixed given.
51 Parameter #5 $language of class UcanLab\LaravelDacapo\Dacapo\Domain\Schema\IndexModifier\IndexModifier constructor expects string|null, mixed given.
------ ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
------ ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Line src/Dacapo/Domain/Schema/Schema.php
------ ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
54 Argument of an invalid type mixed supplied for foreach, only iterables are supported.
55 Parameter #1 $name of class UcanLab\LaravelDacapo\Dacapo\Domain\Schema\Column\ColumnName constructor expects string|null, mixed given.
55 Parameter #2 $attributes of static method UcanLab\LaravelDacapo\Dacapo\Domain\Schema\Column\Column::factory() expects array<string, mixed>|bool|string|null, mixed given.
59 Argument of an invalid type mixed supplied for foreach, only iterables are supported.
60 Parameter #1 $attributes of static method UcanLab\LaravelDacapo\Dacapo\Domain\Schema\IndexModifier\IndexModifier::factory() expects array<string, mixed>, mixed given.
64 Argument of an invalid type mixed supplied for foreach, only iterables are supported.
65 Parameter #1 $attributes of static method UcanLab\LaravelDacapo\Dacapo\Domain\Schema\ForeignKey\ForeignKey::factory() expects array<string, mixed>, mixed given.
------ ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
------ ------------------------------------------------------------------------------------------------------------------------------------------
Line src/Dacapo/Domain/Schema/Table/Table.php
------ ------------------------------------------------------------------------------------------------------------------------------------------
25 Parameter #1 $value of class UcanLab\LaravelDacapo\Dacapo\Domain\Schema\Table\Connection constructor expects string|null, mixed given.
26 Parameter #1 $value of class UcanLab\LaravelDacapo\Dacapo\Domain\Schema\Table\TableComment constructor expects string|null, mixed given.
27 Parameter #1 $value of class UcanLab\LaravelDacapo\Dacapo\Domain\Schema\Table\Engine constructor expects string|null, mixed given.
28 Parameter #1 $value of class UcanLab\LaravelDacapo\Dacapo\Domain\Schema\Table\Charset constructor expects string|null, mixed given.
29 Parameter #1 $value of class UcanLab\LaravelDacapo\Dacapo\Domain\Schema\Table\Collation constructor expects string|null, mixed given.
30 Parameter #1 $enable of class UcanLab\LaravelDacapo\Dacapo\Domain\Schema\Table\Temporary constructor expects bool, mixed given.
------ ------------------------------------------------------------------------------------------------------------------------------------------
------ -------------------------------------------------------------------------------------
Line src/Dacapo/Presentation/Console/DacapoCommand.php
------ -------------------------------------------------------------------------------------
89 Parameter #2 ...$arrays of function array_intersect_key expects array, mixed given.
95 Parameter #2 ...$arrays of function array_merge expects array, mixed given.
------ -------------------------------------------------------------------------------------
------ ----------------------------------------------------------------------------------------------
Line src/Providers/ConsoleServiceProvider.php
------ ----------------------------------------------------------------------------------------------
101 Part $connection (mixed) of encapsed string cannot be cast to string.
103 Parameter #2 ...$values of function sprintf expects bool|float|int|string|null, mixed given.
------ ----------------------------------------------------------------------------------------------
[ERROR] Found 33 errors