Skip to content
Snippets Groups Projects
Commit d92036bf authored by Andrey Tymchuk's avatar Andrey Tymchuk Committed by A.Tymchuk
Browse files

Issue #3423280 by WalkingDexter: Fix PHPStan errors (level 1)

parent 8b9a1ec8
No related branches found
No related tags found
No related merge requests found
Pipeline #112071 failed
includes:
- phpstan-baseline.neon
parameters:
level: 0
level: 1
paths:
- .
excludePaths:
......@@ -11,3 +11,8 @@ parameters:
- "#^Unsafe usage of new static#"
# The paragraphs module is not required.
- '#^Class Drupal\\paragraphs\\ParagraphInterface not found\.$#'
# See https://www.drupal.org/project/simple_sitemap/issues/3344735
- message: '#^Variable \$path on left side of \?\? always exists and is not nullable\.$#'
paths:
- modules/simple_sitemap_engines/src/PathProcessor/IndexNowPathProcessor.php
- src/PathProcessor/SitemapPathProcessor.php
......@@ -248,10 +248,8 @@ class EntityManager implements SitemapGetterInterface {
$query = $this->database->select('simple_sitemap_entity_overrides', 'o')
->fields('o', ['id', 'inclusion_settings'])
->condition('o.entity_type', $entity_type_id)
->condition('o.type', $variants[0]);
if (!empty($entity_ids)) {
$query->condition('o.entity_id', $entity_ids, 'IN');
}
->condition('o.type', $variants[0])
->condition('o.entity_id', $entity_ids, 'IN');
$delete_instances = [];
foreach ($query->execute()->fetchAll() as $result) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment