diff --git a/phpstan.neon b/phpstan.neon index 26b77cd..5541a94 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -7,6 +7,7 @@ parameters: - phpstan-bootstrap.php excludePaths: - src/Tests/* + - src/LogHandler/Filter404Handler.php # TODO remove when remove support for Pimcore 10 includes: - phpstan-baseline.neon \ No newline at end of file diff --git a/src/LogHandler/Filter404Handler.php b/src/LogHandler/Filter404Handler.php index 0f228e5..85c891b 100644 --- a/src/LogHandler/Filter404Handler.php +++ b/src/LogHandler/Filter404Handler.php @@ -18,6 +18,7 @@ use Monolog\LogRecord; use Pimcore\Version; +// TODO remove if when remove support for Pimcore 10 if(Version::getMajorVersion() >= 11) { /** diff --git a/src/OpenSearchClientFactory.php b/src/OpenSearchClientFactory.php index c3672f8..ca09964 100644 --- a/src/OpenSearchClientFactory.php +++ b/src/OpenSearchClientFactory.php @@ -30,6 +30,7 @@ public static function createOpenSearchClient(LoggerInterface $logger, array $co $clientBuilder = new ClientBuilder(); $clientBuilder->setHosts($config['hosts']); + // TODO remove if when remove support for Pimcore 10 if (Version::getMajorVersion() >= 11) { if (!$config['log_404_errors'] && $logger instanceof Logger) { $logger->pushHandler(new Filter404Handler());