mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-03 05:56:43 +00:00
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