mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-05 06:56:51 +00:00
minor #3437 Add return type for getGlobals() to documentation. The return type is defined in the GlobalsInterface (maartendekeizer)
This PR was merged into the 3.x branch.
Discussion
----------
Add return type for getGlobals() to documentation. The return type is defined in the GlobalsInterface
Commits
-------
904ed22d Add return type for getGlobals() to documentation. The return type is defied in the GlobalsInterface
This commit is contained in:
+1
-1
@@ -647,7 +647,7 @@ method::
|
||||
|
||||
class Project_Twig_Extension extends \Twig\Extension\AbstractExtension implements \Twig\Extension\GlobalsInterface
|
||||
{
|
||||
public function getGlobals()
|
||||
public function getGlobals(): array
|
||||
{
|
||||
return [
|
||||
'text' => new Text(),
|
||||
|
||||
Reference in New Issue
Block a user