From aef17a160fa1e2f4ed13c93d5aa4dd1b0b3775ac Mon Sep 17 00:00:00 2001 From: Tigrov Date: Thu, 6 Jul 2023 09:32:15 +0700 Subject: [PATCH] Fix test issues --- composer.json | 2 +- src/Schema.php | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 059536c..44854dc 100644 --- a/composer.json +++ b/composer.json @@ -30,7 +30,7 @@ "rector/rector": "^0.17", "roave/infection-static-analysis-plugin": "^1.16", "spatie/phpunit-watcher": "^1.23", - "vimeo/psalm": "^4.3|^5.6", + "vimeo/psalm": "^5.6", "yiisoft/aliases": "^2.0", "yiisoft/cache": "^2.0", "yiisoft/cache-file": "^2.0", diff --git a/src/Schema.php b/src/Schema.php index 4f469e2..1de5453 100644 --- a/src/Schema.php +++ b/src/Schema.php @@ -459,7 +459,6 @@ private function normalizeDefaultValue(?string $defaultValue, ColumnSchemaInterf && $columnSchema->getType() === self::TYPE_TIMESTAMP => new Expression($defaultValue), /** @psalm-var string $defaultValue */ - /** @psalm-suppress PossiblyNullOperand */ strlen($defaultValue) > 2 && str_starts_with($defaultValue, "'") && str_ends_with($defaultValue, "'")