Skip to content

Commit

Permalink
Fix test issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigrov committed Jan 16, 2024
1 parent 47c6cc7 commit cb874bc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,9 @@ private function findComments(TableSchemaInterface $tableSchema): void
{
$sql = $tableSchema->getCreateSql();

preg_match('#^(?:[^(]*--[^\n]*|[^(]*/\*.*?\*/)*[^(]*\((.*)\)[^)]*$#s', $sql, $matches);
if (!preg_match('#^(?:[^(]*--[^\n]*|[^(]*/\*.*?\*/)*[^(]*\((.*)\)[^)]*$#s', $sql, $matches)) {

Check failure on line 768 in src/Schema.php

View workflow job for this annotation

GitHub Actions / PHP 8.0

PossiblyNullArgument

src/Schema.php:768:85: PossiblyNullArgument: Argument 2 of preg_match cannot be null, possibly null value provided (see https://psalm.dev/078)

Check failure on line 768 in src/Schema.php

View workflow job for this annotation

GitHub Actions / PHP 8.1

PossiblyNullArgument

src/Schema.php:768:85: PossiblyNullArgument: Argument 2 of preg_match cannot be null, possibly null value provided (see https://psalm.dev/078)

Check failure on line 768 in src/Schema.php

View workflow job for this annotation

GitHub Actions / PHP 8.2

PossiblyNullArgument

src/Schema.php:768:85: PossiblyNullArgument: Argument 2 of preg_match cannot be null, possibly null value provided (see https://psalm.dev/078)

Check failure on line 768 in src/Schema.php

View workflow job for this annotation

GitHub Actions / PHP 8.1

PossiblyNullArgument

src/Schema.php:768:85: PossiblyNullArgument: Argument 2 of preg_match cannot be null, possibly null value provided (see https://psalm.dev/078)

Check failure on line 768 in src/Schema.php

View workflow job for this annotation

GitHub Actions / PHP 8.2

PossiblyNullArgument

src/Schema.php:768:85: PossiblyNullArgument: Argument 2 of preg_match cannot be null, possibly null value provided (see https://psalm.dev/078)
return;
}

$columnsDefinition = $matches[1];

Expand Down

0 comments on commit cb874bc

Please sign in to comment.