From 8af5d30571cc6b2e257f9d7372f24aa9256ad4fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Kon=C3=A1=C5=A1?= Date: Mon, 27 Mar 2023 18:59:45 +0200 Subject: [PATCH] Fix Nette\Utils\Strings deprecation --- src/Logger/AbstractLogger.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Logger/AbstractLogger.php b/src/Logger/AbstractLogger.php index fae84d5..71488b7 100644 --- a/src/Logger/AbstractLogger.php +++ b/src/Logger/AbstractLogger.php @@ -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; @@ -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; } }