Skip to content

Commit

Permalink
UHF-10539: phpstan fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
hyrsky committed Dec 9, 2024
1 parent f67ed92 commit fd000b7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion helfi_platform_config.install
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

declare(strict_types=1);

use Drupal\Core\Field\BaseFieldDefinition;
use Drupal\helfi_api_base\Environment\ActiveProjectRoles;
use Drupal\helfi_api_base\Environment\ProjectRoleEnum;
use Drupal\helfi_platform_config\Entity\PublishableRedirect;
Expand Down Expand Up @@ -265,7 +266,9 @@ function helfi_platform_config_update_9316() : void {
$field = $fields[$entityType->getKey($key)];

// Set published and custom initially to TRUE.
$field->setInitialValue(TRUE);
if ($field instanceof BaseFieldDefinition) {
$field->setInitialValue(TRUE);
}

$updateManager->installFieldStorageDefinition(
$entityType->getKey($key),
Expand Down

0 comments on commit fd000b7

Please sign in to comment.