8000 PHPDoc · symfony/symfony@453cc12 · GitHub
[go: up one dir, main page]

Skip to content

Commit 453cc12

Browse files
committed
PHPDoc
1 parent 7233f70 commit 453cc12

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Symfony/Component/PropertyAccess/PropertyAccessor.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ private function writeIndex(&$array, $index, $value)
543543
*
544544
* @throws NoSuchPropertyException If the property does not exist or is not
545545
* public.
546-
* @throws InvalidArgumentException
546+
* @throws \TypeError
547547
*/
548548
private function writeProperty(&$object, $property, $value)
549549
{
@@ -575,13 +575,13 @@ private function writeProperty(&$object, $property, $value)
575575
}
576576

577577
/**
578-
* Call a method and convert {@see \TypeError} to {@see InvalidArgumentException}.
578+
* Emulates PHP 7 behavior in PHP 5.
579579
*
580580
* @param object $object
581581
* @param string $method
582582
* @param mixed $value
583583
*
584-
* @throws InvalidArgumentException
584+
* @throws \TypeError
585585
* @throws \Exception
586586
*/
587587
private function callMethod($object, $method, $value) {
@@ -621,7 +621,7 @@ private function callMethod($object, $method, $value) {
621621
* @param string $addMethod The add*() method
622622
* @param string $removeMethod The remove*() method
623623
*
624-
* @throws InvalidArgumentException
624+
* @throws \TypeError
625625
*/
626626
private function writeCollection($object, $property, $collection, $addMethod, $removeMethod)
627627
{

0 commit comments

Comments
 (0)
0