From 97cc5fe23a57aefad3a67119b012b97591639f8e Mon Sep 17 00:00:00 2001 From: Jeroen van den Enden Date: Thu, 9 Dec 2021 15:28:01 +0100 Subject: [PATCH 1/3] Allow Symfony 6.x --- composer.json | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/composer.json b/composer.json index 371a4fb..30a8698 100644 --- a/composer.json +++ b/composer.json @@ -17,7 +17,7 @@ ], "require": { "php": ">=7.2.5", - "symfony/framework-bundle": "^4.4|^5.1", + "symfony/framework-bundle": "^4.4|^5.1|^6.0", "knplabs/knp-snappy": "^1.2" }, "autoload": { @@ -32,12 +32,12 @@ }, "require-dev": { "doctrine/annotations": "^1.11", - "symfony/asset": "^4.4|^5.1", - "symfony/finder": "^4.4|^5.1", - "symfony/phpunit-bridge": "^4.4|^5.1", - "symfony/security-csrf": "^4.4|^5.1", - "symfony/templating": "^4.4|^5.1", - "symfony/validator": "^4.4|^5.1", - "symfony/yaml": "^4.4|^5.1" + "symfony/asset": "^4.4|^5.1|^6.0", + "symfony/finder": "^4.4|^5.1|^6.0", + "symfony/phpunit-bridge": "^4.4|^5.1|^6.0", + "symfony/security-csrf": "^4.4|^5.1|^6.0", + "symfony/templating": "^4.4|^5.1|^6.0", + "symfony/validator": "^4.4|^5.1|^6.0", + "symfony/yaml": "^4.4|^5.1|^6.0" } } From ebf85e2026e18fd4b67786101dc48336b440f084 Mon Sep 17 00:00:00 2001 From: Jeroen van den Enden Date: Thu, 9 Dec 2021 15:41:10 +0100 Subject: [PATCH 2/3] Fix declaration incompatibility --- src/KnpSnappyBundle.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/KnpSnappyBundle.php b/src/KnpSnappyBundle.php index 4f039ac..5348d69 100644 --- a/src/KnpSnappyBundle.php +++ b/src/KnpSnappyBundle.php @@ -9,7 +9,7 @@ class KnpSnappyBundle extends BaseBundle /** * {@inheritdoc} */ - public function getNamespace() + public function getNamespace(): string { return __NAMESPACE__; } @@ -17,7 +17,7 @@ public function getNamespace() /** * {@inheritdoc} */ - public function getPath() + public function getPath(): string { return strtr(__DIR__, '\\', '/'); } From b8b6c67a413012026ff03dbf95b4df5427305d47 Mon Sep 17 00:00:00 2001 From: Jeroen van den Enden Date: Thu, 9 Dec 2021 15:55:12 +0100 Subject: [PATCH 3/3] Drop support for dead PHP versions --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 30a8698..741f973 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,7 @@ } ], "require": { - "php": ">=7.2.5", + "php": "^7.4|^8.0", "symfony/framework-bundle": "^4.4|^5.1|^6.0", "knplabs/knp-snappy": "^1.2" },