Skip to content

Commit

Permalink
Merge pull request #521 from City-of-Helsinki/UHF-X-phpstanfix
Browse files Browse the repository at this point in the history
Try to silence phpstan
  • Loading branch information
sundflux authored Jun 28, 2024
2 parents f03a014 + a1a50db commit da64e27
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ public function transform($value, MigrateExecutableInterface $migrate_executable
$node = $this->entityTypeManager->getStorage('node')->load($nid);
if (!empty($node) && $node->isPublished()) {
// Value is in the past, node exists, and the node is already published.
// @phpstan-ignore-next-line
throw new MigrateSkipProcessException("The date is in the past and destination node is already published.");
}
}
Expand Down

0 comments on commit da64e27

Please sign in to comment.