We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f68d1bd commit bd79cc1Copy full SHA for bd79cc1
1 file changed
src/twigextensions/Extension.php
@@ -10,17 +10,17 @@ class Extension extends AbstractExtension {
10
// Public Methods
11
// =========================================================================
12
13
- public function getName() {
+ public function getName(): string {
14
return 'Twig Extensions';
15
}
16
17
- public function getFunctions() {
+ public function getFunctions(): array {
18
return [
19
new TwigFunction('cgGetValue', [$this, 'getValue']),
20
];
21
22
23
- public function getValue($array, $key, $default = null) {
+ public function getValue($array, $key, $default = null): mixed {
24
if (is_array($array)) {
25
return ArrayHelper::getValue($array, $key, $default);
26
0 commit comments