8000 More CS fixes · symfony/symfony@fe8e9e5 · GitHub
[go: up one dir, main page]

Skip to content

Commit fe8e9e5

Browse files
committed
More CS fixes
1 parent 453cc12 commit fe8e9e5

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/Symfony/Component/PropertyAccess/PropertyAccessorInterface.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,12 @@ interface PropertyAccessorInterface
4343
* @param string|PropertyPathInterface $propertyPath The property path to modify
4444
* @param mixed $value The value to set at the end of the property path
4545
*
46-
* @throws Exception\InvalidArgumentException If the property path is invalid or the value type does not match with the setter type hint
46+
* @throws Exception\InvalidArgumentException If the property path is invalid
4747
* @throws Exception\AccessException If a property/index does not exist or is not public
4848
* @throws Exception\UnexpectedTypeException If a value within the path is neither object
4949
* nor array
50+
* @throws \TypeError If a the type of the value does not match the type
51+
* of the parameter of the mutator method
5052
*/
5153
public function setValue(&$objectOrArray, $propertyPath, $value);
5254

src/Symfony/Component/PropertyAccess/Tests/PropertyAccessorTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
namespace Symfony\Component\PropertyAccess\Tests;
1313

14-
use Symfony\Component\PropertyAccess\Exception\InvalidArgumentException;
1514
use Symfony\Component\PropertyAccess\Exception\NoSuchIndexException;
1615
use Symfony\Component\PropertyAccess\PropertyAccessor;
1716
use Symfony\Component\PropertyAccess\Tests\Fixtures\TestClass;
@@ -515,7 +514,7 @@ public function testIsWritableForReferenceChainIssue($object, $path, $value)
515514
/**
516515
* @expectedException \TypeError
517516
*/
518-
public function testConvertTypeErrorToInvalidArgumentException()
517+
public function testThrowTypeError()
519518
{
520519
$this->propertyAccessor->setValue(new TestClass('Kévin'), 'date', 'This is a string, \DateTime excepted.');
521520
}

0 commit comments

Comments
 (0)
0