Add phpstan

This commit is contained in:
Oliver Davies 2025-05-29 18:12:17 +01:00
parent 90e8e68fa8
commit cc557aa0fc
8 changed files with 30 additions and 8 deletions

View file

@ -4,6 +4,10 @@ declare(strict_types=1);
use Drupal\node\NodeInterface;
/**
* @param array<non-empty-string, array<non-empty-string, array{}>> $links
* @param array<non-empty-string, mixed> $context
*/
function opd_podcast_node_links_alter(array &$links, NodeInterface $entity, array &$context): void {
if ($entity->bundle() !== 'podcast_episode') {
return;