Skip to content
Snippets Groups Projects
Commit ce7167a8 authored by Bohdan Artemchuk's avatar Bohdan Artemchuk Committed by Bohdan Artemchuk
Browse files

Issue #3401287 by bohart: Fixed phpstan jobs failing at GitLab CI.

parent fcdded28
Branches 8.x-1.x
No related tags found
1 merge request!6Issue #3401287 by bohart: Fixed phpstan jobs failing at GitLab CI.
Pipeline #48839 passed
......@@ -51,7 +51,6 @@ function migrate_cron_cron() {
$migrate->setStatus(MigrationInterface::STATUS_IDLE);
}
\Drupal::state()->set('migrate_cron.last_run.' . $migrationId, $current_time);
$migrate->setTrackLastImported(TRUE);
if (!$config->get("{$migrationId}_skip_update")) {
$migrate->getIdMap()->prepareUpdate();
}
......
# Configuration file for PHPStan static code checking, see https://phpstan.org .
# PHPStan is triggered on Drupal CI in commit-code-check.sh.
# @see: https://git.drupalcode.org/project/drupal/-/blob/10.0.x/core/phpstan.neon.dist
parameters:
level: 1
ignoreErrors:
# new static() is a best practice in Drupal, so we cannot fix that.
# @see https://www.drupal.org/docs/develop/development-tools/phpstan/handling-unsafe-usage-of-new-static
- "#^Unsafe usage of new static#"
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