Skip to content

Commit 1c5f3ca

Browse files
committed
Allow Symfony 6
1 parent 56a7235 commit 1c5f3ca

File tree

3 files changed

+24
-26
lines changed

3 files changed

+24
-26
lines changed

.github/workflows/phpunit.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ jobs:
4747
dependencies: highest
4848
symfony: '5.4.*'
4949
stability: 'dev'
50+
51+
# Test Symfony 6.0 dev version
52+
- php: '8.0'
53+
dependencies: highest
54+
symfony: '6.0.*'
55+
stability: 'dev'
5056
steps:
5157
- name: Checkout
5258
uses: actions/checkout@v2

composer.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@
2525
"php": "^7.4|^8.0",
2626
"ext-mbstring": "*",
2727
"imagine/imagine": "^1.2.4",
28-
"symfony/filesystem": "^4.4|^5.3",
29-
"symfony/finder": "^4.4|^5.3",
30-
"symfony/framework-bundle": "^3.4.23|^4.4|^5.3",
31-
"symfony/mime": "^4.4|^5.3",
32-
"symfony/options-resolver": "^4.4|^5.3",
33-
"symfony/process": "^4.4|^5.3",
28+
"symfony/filesystem": "^4.4|^5.3|^6.0",
29+
"symfony/finder": "^4.4|^5.3|^6.0",
30+
"symfony/framework-bundle": "^3.4.23|^4.4|^5.3|^6.0",
31+
"symfony/mime": "^4.4|^5.3|^6.0",
32+
"symfony/options-resolver": "^4.4|^5.3|^6.0",
33+
"symfony/process": "^4.4|^5.3|^6.0",
3434
"twig/twig": "^1.44|^2.9|^3.0"
3535
},
3636
"require-dev": {
@@ -42,16 +42,16 @@
4242
"phpstan/phpstan": "^0.12.64",
4343
"psr/cache": "^1.0|^2.0|^3.0",
4444
"psr/log": "^1.0",
45-
"symfony/browser-kit": "^4.4|^5.3",
46-
"symfony/cache": "^4.4|^5.3",
47-
"symfony/console": "^4.4|^5.3",
48-
"symfony/dependency-injection": "^4.4|^5.3",
49-
"symfony/form": "^4.4|^5.3",
50-
"symfony/messenger": "^4.4|^5.3",
45+
"symfony/browser-kit": "^4.4|^5.3|^6.0",
46+
"symfony/cache": "^4.4|^5.3|^6.0",
47+
"symfony/console": "^4.4|^5.3|^6.0",
48+
"symfony/dependency-injection": "^4.4|^5.3|^6.0",
49+
"symfony/form": "^4.4|^5.3|^6.0",
50+
"symfony/messenger": "^4.4|^5.3|^6.0",
5151
"symfony/phpunit-bridge": "^5.3",
52-
"symfony/templating": "^4.4|^5.3",
53-
"symfony/validator": "^4.4|^5.3",
54-
"symfony/yaml": "^4.4|^5.3"
52+
"symfony/templating": "^4.4|^5.3|^6.0",
53+
"symfony/validator": "^4.4|^5.3|^6.0",
54+
"symfony/yaml": "^4.4|^5.3|^6.0"
5555
},
5656
"suggest": {
5757
"ext-exif": "required to read EXIF metadata from images",

tests/Functional/AbstractWebTestCase.php

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,14 @@
1616

1717
abstract class AbstractWebTestCase extends WebTestCase
1818
{
19-
/**
20-
* @return string
21-
*/
22-
public static function getKernelClass()
19+
public static function getKernelClass(): string
2320
{
2421
require_once __DIR__.'/app/AppKernel.php';
2522

2623
return AppKernel::class;
2724
}
2825

29-
/**
30-
* @return object
31-
*/
32-
protected function getService(string $name)
26+
protected function getService(string $name): ?object
3327
{
3428
if (property_exists($this, 'container')) {
3529
return static::$container->get($name);
@@ -51,11 +45,9 @@ protected function getParameter(string $name)
5145
}
5246

5347
/**
54-
* @param object $object
55-
*
5648
* @return mixed
5749
*/
58-
protected function getPrivateProperty($object, string $name)
50+
protected function getPrivateProperty(object $object, string $name)
5951
{
6052
$r = new \ReflectionObject($object);
6153

0 commit comments

Comments
 (0)