Skip to content

Commit 94a97ed

Browse files
Fix issue psalm. (#219)
1 parent 9248942 commit 94a97ed

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.github/workflows/composer-require-checker.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,5 +68,8 @@ jobs:
6868
FULL_BRANCH_NAME: ${{ env.FULL_BRANCH_NAME }}
6969
WORK_PACKAGE_URL: ${{ env.WORK_PACKAGE_URL }}
7070

71+
- name: Install dependencies with composer.
72+
run: composer update --no-interaction --no-progress --optimize-autoloader --ansi
73+
7174
- name: Check dependencies.
7275
run: vendor/bin/composer-require-checker

src/DMLQueryBuilder.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -225,22 +225,22 @@ protected function prepareInsertValues(string $table, array|QueryInterface $colu
225225
return [$names, $placeholders, $values, $params];
226226
}
227227

228-
public function resetSequence(string $tableName, int|string $value = null): string
228+
public function resetSequence(string $table, int|string $value = null): string
229229
{
230-
$tableSchema = $this->schema->getTableSchema($tableName);
230+
$tableSchema = $this->schema->getTableSchema($table);
231231

232232
if ($tableSchema === null) {
233-
throw new InvalidArgumentException("Table not found: '$tableName'.");
233+
throw new InvalidArgumentException("Table not found: '$table'.");
234234
}
235235

236236
$sequenceName = $tableSchema->getSequenceName();
237237

238238
if ($sequenceName === null) {
239-
throw new InvalidArgumentException("There is not sequence associated with table '$tableName'.");
239+
throw new InvalidArgumentException("There is not sequence associated with table '$table'.");
240240
}
241241

242242
if ($value === null && count($tableSchema->getPrimaryKey()) > 1) {
243-
throw new InvalidArgumentException("Can't reset sequence for composite primary key in table: $tableName");
243+
throw new InvalidArgumentException("Can't reset sequence for composite primary key in table: $table");
244244
}
245245

246246
/**

0 commit comments

Comments
 (0)