Showing 521 of 706 total issues
todo found Open
Open
@todo: Remove when https://www.drupal.org/node/2779919 is resolved.
- Exclude checks
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
Open
* @param \Drupal\Core\Render\RendererInterface $renderer
- Exclude checks
syntax error, unexpected '->' (T_OBJECT_OPERATOR)
Open
Open
$collection->get('xmlsitemap.sitemap_xml')?->setRequirement('_access', 'FALSE');
- Exclude checks
Invalid offset 0
of array type array{#title:}
Open
Open
$build['su_year'][0]['#markup'] = trim("$date, " . $build['su_year'][0]['#markup'], ', ');
- Exclude checks
syntax error, unexpected ')'
Open
Open
));
- Exclude checks
syntax error, unexpected ','
Open
Open
id: "response_code",
- Exclude checks
syntax error, unexpected 'protected' (T_PROTECTED), expecting variable (T_VARIABLE)
Open
Open
public function __construct(protected EntityTypeManagerInterface $entityTypeManager) {}
- Exclude checks
syntax error, unexpected ')'
Open
Open
);
- Exclude checks
syntax error, unexpected '=>' (T_DOUBLE_ARROW), expecting ']'
Open
Open
'fields' => fn() => [
- Exclude checks
syntax error, unexpected ','
Open
Open
id: "signup_block",
- Exclude checks
Returning type \Drupal\Core\TypedData\TranslatableInterface
but getParentEntity()
is declared to return \Drupal\Core\Entity\ContentEntityInterface|null
Open
Open
return $parent;
- Exclude checks
Possibly zero references to use statement for classlike/namespace MigrateProcess
(\Drupal\migrate\Attribute\MigrateProcess)
Open
Open
use Drupal\migrate\Attribute\MigrateProcess;
- Exclude checks
syntax error, unexpected '...' (T_ELLIPSIS), expecting ']'
Open
Open
$urls = [...$bookmark_urls, ...$feed_urls];
- Exclude checks
syntax error, unexpected ','
Open
Open
id: "saml_role_mapping",
- Exclude checks
Argument 2 (allowable_tags)
is array<int></int>
but \strip_tags()
takes string
Open
Open
$value = preg_replace('/\s\s+/', "\n", trim(strip_tags($text, $keep_tags)));
- Exclude checks
syntax error, unexpected '->' (T_OBJECT_OPERATOR)
Open
Open
if (!$node->isPublished() && $node->original?->isPublished() && \Drupal::hasService('search_api_algolia.helper')) {
- Exclude checks
syntax error, unexpected ','
Open
Open
id: "entity_access",
- Exclude checks
syntax error, unexpected ','
Open
Open
id: "pdb_component",
- Exclude checks
syntax error, unexpected '$citation' (T_VARIABLE), expecting ',' or ')'
Open
Open
$builder->callback(fn(CitationInterface $citation) => $citation->getBibliography()),
- Exclude checks
Invalid offset "#field_name"
of array type array{add_more:array{#value:}}|array{add_more:array{add_more_button_stanford_person_cta:array{#value:}}}|array{add_more_button_stanford_person_cta:array{#value:}}
Open
Open
if ($variables['element']['#field_name'] == "su_schedule_speaker") {
- Exclude checks