Skip to content

Commit 987991d

Browse files
committed
PHPStan: fixed errors
1 parent 088c640 commit 987991d

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

tests/SqlSchema/ForeignKey.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ test(function () {
2222

2323
test(function () {
2424
$foreignKey = new ForeignKey('fk_name', 'author_id', 'author', 'id');
25-
$foreignKey->setOnUpdateAction($foreignKey::ACTION_NO_ACTION);
26-
$foreignKey->setOnDeleteAction($foreignKey::ACTION_SET_NULL);
25+
$foreignKey->setOnUpdateAction(ForeignKey::ACTION_NO_ACTION);
26+
$foreignKey->setOnDeleteAction(ForeignKey::ACTION_SET_NULL);
2727

2828
Assert::same($foreignKey::ACTION_NO_ACTION, $foreignKey->getOnUpdateAction());
2929
Assert::same($foreignKey::ACTION_SET_NULL, $foreignKey->getOnDeleteAction());

tests/SqlSchema/readme.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ test(function () {
1818
$table->addIndex(NULL, 'id', Index::TYPE_PRIMARY);
1919
$table->addIndex('name_author_id', ['name', 'author_id'], Index::TYPE_UNIQUE);
2020

21-
$schema->getTables();
21+
$schema->getTables(); // @phpstan-ignore method.resultUnused
2222

2323
Assert::same([
2424
'book' => [

0 commit comments

Comments
 (0)