Skip to content

Commit df1c389

Browse files
committed
Add detailed return annotation for compile method
1 parent dde040d commit df1c389

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Compiler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public static function composePHPRender(Context $context, string $code): string
6565
use {$safeStringClass};
6666
use {$helperOptions};
6767
use {$runtimeContext};
68-
return function (\$in = null, array \$options = []) {
68+
return function (mixed \$in = null, array \$options = []) {
6969
\$helpers = $helpers;
7070
\$partials = [$partials];
7171
\$cx = new RuntimeContext(

src/Handlebars.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ final class Handlebars
99

1010
/**
1111
* Compiles a template so it can be executed immediately.
12+
* @return \Closure(mixed=, array=):string
1213
*/
1314
public static function compile(string $template, Options $options = new Options()): \Closure
1415
{

0 commit comments

Comments
 (0)