Verified Commit 60f751ea authored by Dave Long's avatar Dave Long
Browse files

Issue #3352758 by Spokje: Fix PHPStan L1 errors "#foo callback 'bar' at key 'n' is not callable."

parent a701bab5
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -168,6 +168,9 @@ public static function cases(ContainerInterface $container = NULL, AccountInterf
      '<hello',
      [
        '#lazy_builder' => [
          // We specifically test an invalid callback here. We need to let
          // PHPStan ignore it.
          // @phpstan-ignore-next-line
          'hello_or_yarhar',
          [],
        ],
@@ -201,6 +204,9 @@ public static function cases(ContainerInterface $container = NULL, AccountInterf
      ],
      '<time>CURRENT TIME</time>',
      [
        // We specifically test an invalid callback here. We need to let
        // PHPStan ignore it.
        // @phpstan-ignore-next-line
        '#pre_render' => ['current_time'],
      ]
    );
+0 −10
Original line number Diff line number Diff line
@@ -785,16 +785,6 @@ parameters:
			count: 1
			path: modules/action/src/Form/ActionFormBase.php

		-
			message: "#^\\#lazy_builder callback 'hello_or_yarhar' at key '0' is not callable\\.$#"
			count: 1
			path: modules/big_pipe/tests/modules/big_pipe_test/src/BigPipePlaceholderTestCases.php

		-
			message: "#^\\#pre_render callback 'current_time' at key '0' is not callable\\.$#"
			count: 1
			path: modules/big_pipe/tests/modules/big_pipe_test/src/BigPipePlaceholderTestCases.php

		-
			message: "#^Relying on entity queries to check access by default is deprecated in drupal\\:9\\.2\\.0 and an error will be thrown from drupal\\:10\\.0\\.0\\. Call \\\\Drupal\\\\Core\\\\Entity\\\\Query\\\\QueryInterface\\:\\:accessCheck\\(\\) with TRUE or FALSE to specify whether access should be checked\\.$#"
			count: 1