Skip to content

Commit

Permalink
Add return type to getDebugInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
ruudk committed Oct 24, 2024
1 parent b0017ad commit 0bb49dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Node/ModuleNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,7 @@ protected function compileDebugInfo(Compiler $compiler)
$compiler
->write("/**\n")
->write(" * @codeCoverageIgnore\n")
->write(" * @return array<int, int>\n")
->write(" */\n")
->write("public function getDebugInfo(): array\n", "{\n")
->indent()
Expand Down
3 changes: 3 additions & 0 deletions tests/Node/ModuleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ public function getTemplateName(): string
/**
* @codeCoverageIgnore
* @return array<int, int>
*/
public function getDebugInfo(): array
{
Expand Down Expand Up @@ -206,6 +207,7 @@ public function isTraitable(): bool
/**
* @codeCoverageIgnore
* @return array<int, int>
*/
public function getDebugInfo(): array
{
Expand Down Expand Up @@ -300,6 +302,7 @@ public function isTraitable(): bool
/**
* @codeCoverageIgnore
* @return array<int, int>
*/
public function getDebugInfo(): array
{
Expand Down

0 comments on commit 0bb49dc

Please sign in to comment.