Skip to content

Commit bd79cc1

Browse files
committed
utils
1 parent f68d1bd commit bd79cc1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/twigextensions/Extension.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@ class Extension extends AbstractExtension {
1010
// Public Methods
1111
// =========================================================================
1212

13-
public function getName() {
13+
public function getName(): string {
1414
return 'Twig Extensions';
1515
}
1616

17-
public function getFunctions() {
17+
public function getFunctions(): array {
1818
return [
1919
new TwigFunction('cgGetValue', [$this, 'getValue']),
2020
];
2121
}
2222

23-
public function getValue($array, $key, $default = null) {
23+
public function getValue($array, $key, $default = null): mixed {
2424
if (is_array($array)) {
2525
return ArrayHelper::getValue($array, $key, $default);
2626
}

0 commit comments

Comments
 (0)