Skip to content

Commit 9e46a21

Browse files
authored
upgrade symfony deps to ^6 (#13)
1 parent 12c5029 commit 9e46a21

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
lines changed

composer.json

+10-10
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
"require": {
66
"php": "^8.0",
77
"ext-json": "*",
8-
"symfony/property-access": "^4.0 || ^5.0",
9-
"symfony/http-foundation": "^4.0 || ^5.0",
10-
"symfony/options-resolver": "^4.0 || ^5.0",
11-
"symfony/dependency-injection": "^4.0 || ^5.0",
12-
"symfony/http-kernel": "^4.0 || ^5.0",
13-
"symfony/config": "^4.0 || ^5.0",
14-
"symfony/event-dispatcher": "^4.0 || ^5.0",
8+
"symfony/property-access": "^4.0 || ^5.0 || ^6.0",
9+
"symfony/http-foundation": "^4.0 || ^5.0 || ^6.0",
10+
"symfony/options-resolver": "^4.0 || ^5.0 || ^6.0",
11+
"symfony/dependency-injection": "^4.0 || ^5.0 || ^6.0",
12+
"symfony/http-kernel": "^4.0 || ^5.0 || ^6.0",
13+
"symfony/config": "^4.0 || ^5.0 || ^6.0",
14+
"symfony/event-dispatcher": "^4.0 || ^5.0 || ^6.0",
1515
"mattiabasone/phpcollection": "^0.7.0"
1616
},
1717
"require-dev": {
@@ -21,9 +21,9 @@
2121
"yohang/finite": "^1.2",
2222
"doctrine/orm": "^2.9",
2323
"phpspec/prophecy-phpunit": "^2.0",
24-
"phpstan/phpstan": "^0.12.99",
25-
"phpstan/phpstan-doctrine": "^0.12.44",
26-
"phpstan/phpstan-mockery": "^0.12.14"
24+
"phpstan/phpstan": "^1.0",
25+
"phpstan/phpstan-doctrine": "^1.0",
26+
"phpstan/phpstan-mockery": "^1.0"
2727
},
2828
"autoload": {
2929
"psr-4": {

phpstan.neon

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ parameters:
1212
- '#no value type specified in iterable type#'
1313
- '#Call to an undefined method Symfony\\Component\\Config\\Definition\\Builder\\NodeDefinition::children\(\)#'
1414
- '#Call to an undefined method Prophecy\\Prophecy#'
15-
- '#Method Cypress\\PatchManager\\OperationMatcher::getUnmatchedOperations\(\) should return PhpCollection\\Sequence but returns PhpCollection\\CollectionInterface#'
15+
- '#Method Cypress\\PatchManager\\OperationMatcher::getUnmatchedOperations\(\) should return PhpCollection\\Sequence but returns PhpCollection\\AbstractSequence#'
16+
- '#Property Cypress\\PatchManager\\Tests\\FakeObjects\\Subject(A|B)::\$a is never read, only written#'

tests/PatchManager/Bundle/PatchManagerBundleTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class PatchManagerBundleTest extends PatchManagerTestCase
1414
public function testBuild(): void
1515
{
1616
$cb = $this->prophesize(ContainerBuilder::class);
17-
$cb->addCompilerPass(new PatchManagerCompilerPass())->shouldBeCalled();
17+
$cb->addCompilerPass(new PatchManagerCompilerPass())->shouldBeCalled()->willReturn($cb->reveal());
1818
$cb->registerForAutoconfiguration(PatchOperationHandler::class)->shouldBeCalled()->willReturn(new ChildDefinition(''));
1919
$bundle = new PatchManagerBundle();
2020
$bundle->build($cb->reveal());

0 commit comments

Comments
 (0)