Skip to content

Commit 0862ef0

Browse files
committed
Fix tests
1 parent 9a5501b commit 0862ef0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tests/functional/Generator/PhpStormMetaTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ private function assertPlugins(): void {
229229
self::assertStringContainsString('typed_data_manager__plugin_ids', $generated_content);
230230
self::assertStringContainsString('validation.constraint__plugin_ids', $generated_content);
231231

232-
self::assertSame(51, \substr_count($generated_content, 'registerArgumentsSet'));
232+
self::assertSame(52, \substr_count($generated_content, 'registerArgumentsSet'));
233233
}
234234

235235
/**

tests/functional/Generator/_hook/example.module

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ declare(strict_types=1);
1010
/**
1111
* Implements hook_theme().
1212
*/
13-
function example_theme($existing, $type, $theme, $path) {
13+
function example_theme($existing, $type, $theme, $path): array {
1414
return [
1515
'my_module_display' => [
1616
'variables' => [

tests/functional/Helper/Drupal/hook_fixtures/views_query_substitutions.twig

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ declare(strict_types=1);
1010
/**
1111
* Implements hook_views_query_substitutions().
1212
*/
13-
function {{ machine_name }}_views_query_substitutions(ViewExecutable $view) {
13+
function {{ machine_name }}_views_query_substitutions(ViewExecutable $view): array {
1414
// Example from views_views_query_substitutions().
1515
return [
1616
'***CURRENT_VERSION***' => \Drupal::VERSION,

0 commit comments

Comments
 (0)