Skip to content

Commit 0328986

Browse files
authored
fix: PHPStan errors (#293)
Co-authored-by: Yabu Tomohito <[email protected]>
1 parent cb4fdd7 commit 0328986

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

phpstan.neon

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ parameters:
77
count: 1
88
path: src/Query/Processor.php
99
-
10-
message: '#^Closure invoked with 2 parameters, 3 required\.$#'
11-
identifier: arguments.count
12-
count: 1
13-
path: src/Schema/Builder.php
10+
message: '#^Parameter \#1 \$pdo of method Illuminate\\Database\\Connection\:\:__construct\(\) expects \(Closure\(\)\: PDO\)\|PDO, Closure\(\)\: null given\.$#'
11+
identifier: argument.type
12+
count: 1
13+
path: src/Connection.php
1414

1515
-
16-
message: '#^Parameter \#2 of closure expects Closure, Closure\|null given\.$#'
17-
identifier: argument.type
18-
count: 1
19-
path: src/Schema/Builder.php
16+
message: '#^Property Illuminate\\Database\\Schema\\Builder\:\:\$resolver \(Closure\) in isset\(\) is not nullable\.$#'
17+
identifier: isset.property
18+
count: 1
19+
path: src/Schema/Builder.php

src/Schema/Builder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public function dropIndexIfExist($table, $name)
107107
protected function createBlueprint($table, ?Closure $callback = null)
108108
{
109109
return isset($this->resolver)
110-
? ($this->resolver)($table, $callback)
110+
? ($this->resolver)($this->connection, $table, $callback)
111111
: new Blueprint($this->connection, $table, $callback);
112112
}
113113

src/Schema/Grammar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -882,7 +882,7 @@ protected function typeTokenList(Fluent $column): string
882882
* Get the SQL for an invisible column modifier.
883883
*
884884
* @param Blueprint $blueprint
885-
* @param ColumnDefinition&object{ invisible: bool } $column
885+
* @param ColumnDefinition&object{ invisible: bool|null } $column
886886
* @return string|null
887887
*/
888888
protected function modifyInvisible(Blueprint $blueprint, Fluent $column)

0 commit comments

Comments
 (0)