Skip to content

Commit af5e9ab

Browse files
authored
ci: slightly improve composer qa (#1095)
1 parent 82efd60 commit af5e9ab

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,8 @@
178178
"scripts": {
179179
"phpunit": "vendor/bin/phpunit --display-warnings --display-skipped --display-deprecations --display-errors --display-notices",
180180
"coverage": "vendor/bin/phpunit --coverage-html build/reports/html --coverage-clover build/reports/clover.xml",
181-
"mago:fmt": "vendor/bin/mago fmt",
182-
"mago:lint": "vendor/bin/mago lint --fix --fmt && vendor/bin/mago lint",
181+
"mago:fmt": "vendor/bin/mago fmt && vendor/bin/mago lint --fix --potentially-unsafe --fmt",
182+
"mago:lint": "vendor/bin/mago lint",
183183
"phpstan": "vendor/bin/phpstan analyse src tests --memory-limit=1G",
184184
"rector": "vendor/bin/rector process --no-ansi",
185185
"merge": "php -d\"error_reporting = E_ALL & ~E_DEPRECATED\" vendor/bin/monorepo-builder merge",
@@ -191,7 +191,7 @@
191191
"composer mago:fmt",
192192
"composer merge",
193193
"./bin/validate-packages",
194-
"./tempest discovery:clear",
194+
"./tempest discovery:clear --no-interaction",
195195
"composer rector",
196196
"composer phpunit",
197197
"composer mago:lint",

rector.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
],
3838
])
3939
->withRules([
40-
ParenthesizeNestedTernaryRector::class,
4140
ExplicitNullableParamTypeRector::class,
4241
])
4342
->withSkip([

src/Tempest/Database/src/Builder/QueryBuilders/InsertQueryBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function __construct(
2323
$this->insert = new InsertStatement($this->resolveTableDefinition());
2424
}
2525

26-
public function execute(...$bindings): Id
26+
public function execute(mixed ...$bindings): Id
2727
{
2828
return $this->build()->execute(...$bindings);
2929
}

src/Tempest/Database/src/Builder/QueryBuilders/UpdateQueryBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function __construct(
3030
);
3131
}
3232

33-
public function execute(...$bindings): Id
33+
public function execute(mixed ...$bindings): Id
3434
{
3535
return $this->build()->execute(...$bindings);
3636
}

src/Tempest/Database/src/QueryStatements/InsertStatement.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function compile(DatabaseDialect $dialect): string
4141

4242
return sprintf(
4343
'(%s)',
44-
$row->map(fn (mixed $value) => '?')->implode(', '),
44+
$row->map(fn () => '?')->implode(', '),
4545
);
4646
})
4747
->implode(', ');

src/Tempest/Database/src/QueryStatements/UpdateStatement.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function compile(DatabaseDialect $dialect): string
3535
}
3636

3737
$query[] = 'SET ' . $this->values
38-
->map(fn (mixed $value, mixed $key) => sprintf("`{$key}` = ?"))
38+
->map(fn (mixed $_, mixed $key) => sprintf("`{$key}` = ?"))
3939
->implode(', ');
4040

4141
if ($this->where->isNotEmpty()) {

tests/bootstrap.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@
66

77
require_once __DIR__ . '/../vendor/autoload.php';
88

9+
echo PHP_EOL;
910
passthru('php tempest discovery:generate --no-interaction');
1011
echo PHP_EOL;

0 commit comments

Comments
 (0)