From 1a3ab675c0d4b9ba73a4c9c78e629e58d60ecd4b Mon Sep 17 00:00:00 2001 From: Stephan Vierkant Date: Sat, 15 Jan 2022 15:12:57 +0100 Subject: [PATCH] Update return types --- DependencyInjection/Configuration.php | 4 +++- TwigExtension.php | 6 ++++++ composer.json | 10 +++++----- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index e034f15..b9d9dfd 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -9,11 +9,13 @@ * This is the class that validates and merges configuration from your app/config files * * To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html#cookbook-bundles-extension-config-class} + * + * @final */ class Configuration implements ConfigurationInterface { /** - * {@inheritDoc} + * @return TreeBuilder */ public function getConfigTreeBuilder() { diff --git a/TwigExtension.php b/TwigExtension.php index 98b1531..af1ee90 100644 --- a/TwigExtension.php +++ b/TwigExtension.php @@ -6,6 +6,9 @@ use Twig\Extension\AbstractExtension; use Twig\TwigFunction; +/** + * @final + */ class TwigExtension extends AbstractExtension { private $router; @@ -18,6 +21,9 @@ public function __construct(UrlGeneratorInterface $router, $stackTracePath = nul $this->stackTracePath = $stackTracePath; } + /** + * @return array + */ public function getFunctions() { return array( diff --git a/composer.json b/composer.json index 906b1e1..6964299 100644 --- a/composer.json +++ b/composer.json @@ -18,11 +18,11 @@ "php": ">=7", "ext-json": "*", "psr/log": "^1.0", - "symfony/config": "^3.4 || ^4.2 || ^5.0", - "symfony/dependency-injection": "^3.4 || ^4.2 || ^5.0", - "symfony/http-foundation": "^3.4 || ^4.2 || ^5.0", - "symfony/http-kernel": "^3.4 || ^4.2 || ^5.0", - "symfony/routing": "^3.4 || ^4.2 || ^5.0" + "symfony/config": "^4.4 || ^5.3 || ^6.0", + "symfony/dependency-injection": "^4.4 || ^5.3 || ^6.0", + "symfony/http-foundation": "^4.4 || ^5.3 || ^6.0", + "symfony/http-kernel": "^4.4 || ^5.3 || ^6.0", + "symfony/routing": "^4.4 || ^5.3 || ^6.0" }, "require-dev": { "twig/twig": "^1.40 || ^2.10"