Skip to content
Snippets Groups Projects

[PHP 8.4] Fix phpstan job for ContentModerationConfigureEntityTypesForm

Closed Andrey Postnikov requested to merge issue/drupal-3445788:3445788-8.4-fix-content-mod into 11.x
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -98,7 +98,7 @@ public function getFormId() {
/**
* {@inheritdoc}
*/
public function buildForm(array $form, FormStateInterface $form_state, WorkflowInterface $workflow = NULL, $entity_type_id = NULL) {
public function buildForm(array $form, FormStateInterface $form_state, ?WorkflowInterface $workflow = NULL, $entity_type_id = NULL) {
$this->workflow = $workflow;
try {
$this->entityType = $this->entityTypeManager->getDefinition($entity_type_id);
@@ -218,7 +218,7 @@ public function ajaxCallback() {
/**
* Route title callback.
*/
public function getTitle(WorkflowInterface $workflow = NULL, $entity_type_id) {
public function getTitle(WorkflowInterface $workflow, $entity_type_id) {
$this->entityType = $this->entityTypeManager->getDefinition($entity_type_id);
$title = $this->t('Select the @entity_type types for the @workflow workflow', ['@entity_type' => $this->entityType->getLabel(), '@workflow' => $workflow->label()]);
Loading