Skip to content

Commit

Permalink
feat: Add support for Symfony7 (#1156)
Browse files Browse the repository at this point in the history

---------

Co-authored-by: Jeroen van den Enden <info@endroid.nl>
  • Loading branch information
theofidry and endroid committed Nov 30, 2023
1 parent 646e9bd commit 48bf285
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ jobs:
symfony-versions:
- false
- '6.4.*'
- '7.*.*'
exclude:
- php: '8.1'
symfony-versions: '7.*.*'

name: PHP ${{ matrix.php }} ${{ matrix.description }} - ${{ matrix.symfony-versions }}
steps:
Expand Down
14 changes: 7 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,20 @@
"fakerphp/faker": "^1.10",
"myclabs/deep-copy": "^1.10",
"sebastian/comparator": "^3.0 || ^4.0 || ^5.0",
"symfony/property-access": "^6.4",
"symfony/property-access": "^6.4 || ^7.0",
"symfony/yaml": "^5.4 || ^6.0"
},
"require-dev": {
"bamarni/composer-bin-plugin": "^1.8.1",
"phpspec/prophecy": "^1.6",
"phpspec/prophecy-phpunit": "^2.0",
"phpunit/phpunit": "^9.3",
"symfony/config": "^6.4",
"symfony/dependency-injection": "^6.4",
"symfony/finder": "^6.4",
"symfony/http-kernel": "^6.4",
"symfony/phpunit-bridge": "^6.4",
"symfony/var-dumper": "^6.4"
"symfony/config": "^6.4 || ^7.0",
"symfony/dependency-injection": "^6.4 || ^7.0",
"symfony/finder": "^6.4 || ^7.0",
"symfony/http-kernel": "^6.4 || ^7.0",
"symfony/phpunit-bridge": "^6.4 || ^7.0",
"symfony/var-dumper": "^6.4 || ^7.0"
},
"conflict": {
"symfony/framework-bundle": "<6.4.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function testReturnsHydratedObject(): void
$object = new SimpleObject('dummy', $instance);

$accessorProphecy = $this->prophesize(PropertyAccessorInterface::class);
$accessorProphecy->setValue($instance, 'username', 'bob')->willReturn(null);
$accessorProphecy->setValue($instance, 'username', 'bob')->shouldBeCalled();
/** @var PropertyAccessorInterface $accessor */
$accessor = $accessorProphecy->reveal();

Expand Down

0 comments on commit 48bf285

Please sign in to comment.