Skip to content

Commit d99ac14

Browse files
tobias-93bobvandevijver
authored andcommitted
Fix return type of ConfigExtension getAdmingeneratorConfig method
1 parent 89129ec commit d99ac14

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Twig/Extension/ConfigExtension.php

+1-4
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55
use Twig\Extension\AbstractExtension;
66
use Twig\TwigFunction;
77

8-
/**
9-
* @author Piotr Gołębiewski <[email protected]>
10-
*/
118
class ConfigExtension extends AbstractExtension
129
{
1310
public function __construct(protected readonly array $bundleConfig)
@@ -22,7 +19,7 @@ public function getFunctions(): array
2219
];
2320
}
2421

25-
public function getAdmingeneratorConfig(string $name): ?string
22+
public function getAdmingeneratorConfig(string $name): array|string|null
2623
{
2724
$search_in = $this->bundleConfig;
2825
$path = explode('.', $name);

0 commit comments

Comments
 (0)