SU-SWS/stanford_profile_helper

View on GitHub

Showing 397 of 590 total issues

Argument 1 (parent) is \Drupal\node\NodeInterface but \Drupal\stanford_publication\Entity\CitationInterface::setParentEntity() takes \Drupal\Core\Entity\ContentEntityInterface defined at /code/modules/stanford_publication/src/Entity/CitationInterface.php:67
Open

  $citation_entity->setParentEntity($entity, 'su_publication_citation')

Doc-block of $renderer in __construct is phpdoc param type \Drupal\Core\Render\RendererInterface which is not a permitted replacement of the nullable param type ?\Drupal\Core\Render\RendererInterface declared in the signature ('?T' should be documented as 'T|null' or '?T')
Open

   * @param \Drupal\Core\Render\RendererInterface $renderer

Assigning ?\Drupal\Core\Render\RendererInterface to property but \Drupal\jumpstart_ui\Plugin\TwigPlugin\JumpstartUITwig->renderer is \Drupal\Core\Render\RendererInterface
Open

    $this->renderer = $renderer;

Invalid offset "#fields" of array type array{#ds_configuration:array{regions:array{card_cta_label:mixed}}}
Open

    $variables['content']['#fields']['card_cta_label'] = $variables['content']['#fields']['card_button_label'];

mixed $args is not variadic in comment, but variadic in param (...$args)
Open

   * @param mixed $args

syntax error, unexpected '...' (T_ELLIPSIS), expecting ']'
Open

      ...$original_setting,
Severity: Critical
Found in src/Config/ConfigOverrides.php by phan

Argument 1 (event) is \Drupal\core_event_dispatcher\Event\Entity\EntityUpdateEvent but \Drupal\stanford_profile_helper\EventSubscriber\EntityEventSubscriber::callIndividualEntityMethods() takes \Drupal\core_event_dispatcher\Event\Entity\AbstractEntityEvent defined at /code/src/EventSubscriber/EntityEventSubscriber.php:99
Open

    $this->callIndividualEntityMethods($event, 'update', $event->getOriginalEntity());

syntax error, unexpected '...' (T_ELLIPSIS), expecting ']'
Open

    return [...$fields, ...$focal_point];

syntax error, unexpected 'private' (T_PRIVATE), expecting variable (T_VARIABLE)
Open

  public function __construct(private readonly EntityTypeManagerInterface $entityTypeManager, private readonly UuidInterface $uuid) {}

Suspicious array access to \Drupal\Core\Field\FieldItemListInterface
Open

    $item = $items[$delta];

Declaration of function setClientId(string $client_id) : \Drupal\stanford_person_importer\Cap should be compatible with function setClientId(string $client_id) : \Drupal\stanford_person_importer\CapInterface (method returning '\Drupal\stanford_person_importer\Cap' cannot override method returning '\Drupal\stanford_person_importer\CapInterface') defined in /code/modules/stanford_person/modules/stanford_person_importer/src/CapInterface.php:38
Open

  public function setClientId(string $client_id): self {

todo found
Open

  @todo: Remove when https://www.drupal.org/node/2779919 is resolved.

Declaration of function setClientSecret(string $secret) : \Drupal\stanford_person_importer\Cap should be compatible with function setClientSecret(string $secret) : \Drupal\stanford_person_importer\CapInterface (method returning '\Drupal\stanford_person_importer\Cap' cannot override method returning '\Drupal\stanford_person_importer\CapInterface') defined in /code/modules/stanford_person/modules/stanford_person_importer/src/CapInterface.php:49
Open

  public function setClientSecret(string $secret): self {

Argument 1 (event) is \Drupal\core_event_dispatcher\Event\Entity\EntityPresaveEvent but \Drupal\stanford_profile_helper\EventSubscriber\EntityEventSubscriber::callIndividualEntityMethods() takes \Drupal\core_event_dispatcher\Event\Entity\AbstractEntityEvent defined at /code/src/EventSubscriber/EntityEventSubscriber.php:99
Open

    $this->callIndividualEntityMethods($event, 'preSave');

syntax error, unexpected '...' (T_ELLIPSIS), expecting ']'
Open

      $urls = [...$bookmark_urls, ...$feed_urls];

syntax error, unexpected '->' (T_OBJECT_OPERATOR)
Open

      $collection->get('xmlsitemap.sitemap_xml')?->setRequirement('_access', 'FALSE');

Argument 1 (event) is \Drupal\core_event_dispatcher\Event\Entity\EntityInsertEvent but \Drupal\stanford_profile_helper\EventSubscriber\EntityEventSubscriber::callIndividualEntityMethods() takes \Drupal\core_event_dispatcher\Event\Entity\AbstractEntityEvent defined at /code/src/EventSubscriber/EntityEventSubscriber.php:99
Open

    $this->callIndividualEntityMethods($event, 'insert');
Severity
Category
Status
Source
Language