Skip to content

Commit

Permalink
Fix Nette\Utils\Strings deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
jankonas authored and f3l1x committed Jul 3, 2023
1 parent d252297 commit 8af5d30
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Logger/AbstractLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Nettrine\DBAL\Logger;

use Doctrine\DBAL\Logging\SQLLogger;
use Nette\Utils\Strings;
use Nettrine\DBAL\Exceptions\Runtime\InvalidStateException;
use stdClass;

Expand Down Expand Up @@ -87,7 +86,7 @@ protected function getSource(): array
}

foreach ($this->sourcePaths as $path) {
if (Strings::contains($i['file'], $path)) {
if (strpos($i['file'], $path) !== false) {
$result[] = $i;
}
}
Expand Down

0 comments on commit 8af5d30

Please sign in to comment.