Skip to content

Commit

Permalink
Apply @vjik suggestion
Browse files Browse the repository at this point in the history
Co-authored-by: Sergei Predvoditelev <[email protected]>
  • Loading branch information
Tigrov and vjik authored Oct 15, 2023
1 parent 14566b3 commit 414a8c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MigrationBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function execute(string $sql, array $params = []): void
{
$sqlOutput = $sql;
if (0 < $this->maxSqlOutputLength && $this->maxSqlOutputLength < strlen($sql)) {
$sqlOutput = substr($sql, 0, $this->maxSqlOutputLength - 12) . '[... hidden]';
$sqlOutput = substr($sql, 0, $this->maxSqlOutputLength) . ' [... hidden]';

Check warning on line 55 in src/MigrationBuilder.php

View check run for this annotation

Codecov / codecov/patch

src/MigrationBuilder.php#L54-L55

Added lines #L54 - L55 were not covered by tests
}

$time = $this->beginCommand("Execute SQL: $sqlOutput");
Expand Down

0 comments on commit 414a8c7

Please sign in to comment.