Skip to content

Commit 7c8ee45

Browse files
committed
account for exception handling changes in the core property accessor
see symfony/symfony#45306
1 parent db6163a commit 7c8ee45

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"symfony/framework-bundle": "^4.4||^5.3||^6.0",
2424
"symfony/http-kernel": "^4.4||^5.3||^6.0",
2525
"symfony/options-resolver": "^4.4||^5.3||^6.0",
26-
"symfony/property-access": "^4.4||^5.3||^6.0"
26+
"symfony/property-access": "^4.4.38||^5.4.5||^6.0.5"
2727
},
2828
"require-dev": {
2929
"friendsofphp/php-cs-fixer": "^3.4",

tests/Integration/ExceptionHandlingTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function testMismatchingPropertyTypesWillBeConvertedToErrors(): void
4848
$this->assertTrue($form->get('name')->isValid());
4949
$this->assertFalse($form->get('description')->isValid());
5050
$this->assertSame('This value should be of type string.', $form->get('description')->getErrors()[0]->getMessage());
51-
$this->assertInstanceOf(\TypeError::class, $form->get('description')->getErrors()[0]->getCause());
51+
$this->assertInstanceOf(InvalidArgumentException::class, $form->get('description')->getErrors()[0]->getCause());
5252
}
5353

5454
public function testMismatchingArgumentTypesWillBeConvertedToErrors(): void

0 commit comments

Comments
 (0)