Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Chi-teck committed Dec 20, 2024
1 parent 9a5501b commit 0862ef0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/functional/Generator/PhpStormMetaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ private function assertPlugins(): void {
self::assertStringContainsString('typed_data_manager__plugin_ids', $generated_content);
self::assertStringContainsString('validation.constraint__plugin_ids', $generated_content);

self::assertSame(51, \substr_count($generated_content, 'registerArgumentsSet'));
self::assertSame(52, \substr_count($generated_content, 'registerArgumentsSet'));
}

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/functional/Generator/_hook/example.module
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ declare(strict_types=1);
/**
* Implements hook_theme().
*/
function example_theme($existing, $type, $theme, $path) {
function example_theme($existing, $type, $theme, $path): array {
return [
'my_module_display' => [
'variables' => [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ declare(strict_types=1);
/**
* Implements hook_views_query_substitutions().
*/
function {{ machine_name }}_views_query_substitutions(ViewExecutable $view) {
function {{ machine_name }}_views_query_substitutions(ViewExecutable $view): array {
// Example from views_views_query_substitutions().
return [
'***CURRENT_VERSION***' => \Drupal::VERSION,
Expand Down

0 comments on commit 0862ef0

Please sign in to comment.