Skip to content

Commit

Permalink
minor twigphp#4411 Add return type to getDebugInfo (ruudk)
Browse files Browse the repository at this point in the history
This PR was merged into the 3.x branch.

Discussion
----------

Add return type to getDebugInfo

Commits
-------

0bb49dc Add return type to getDebugInfo
  • Loading branch information
fabpot committed Oct 24, 2024
2 parents b0017ad + 0bb49dc commit 868b429
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 868b429

Please sign in to comment.