Skip to content

Commit

Permalink
remove not needed phpdoc type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
hrach committed Apr 4, 2023
1 parent c66441a commit 6cd1272
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/Utils/FileImporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ public static function executeFile(IConnection $connection, string $file): int
} else {
preg_match('(' . preg_quote($delimiter) . "\\s*|$parse)", $query, $match, PREG_OFFSET_CAPTURE, $offset); // should always match
$found = $match[0][0];
/** @var int $offset */
$offset = $match[0][1] + strlen($found);

if (strlen($found) === 0 && rtrim($query) === '') {
Expand All @@ -75,7 +74,6 @@ public static function executeFile(IConnection $connection, string $file): int
} else { // find matching quote or comment end
while (preg_match('(' . ($found === '/*' ? '\*/' : ($found === '[' ? ']' : (preg_match('~^-- |^#~', $found) === 1 ? "\n" : preg_quote($found) . "|\\\\."))) . '|$)s', $query, $match, PREG_OFFSET_CAPTURE, $offset) === 1) { //! respect sql_mode NO_BACKSLASH_ESCAPES
$s = $match[0][0];
/** @var int $offset */
$offset = $match[0][1] + strlen($s);
if ($s[0] !== '\\') {
break;
Expand Down

0 comments on commit 6cd1272

Please sign in to comment.