Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[PropertyAccess] Throw an InvalidArgumentException when the type do not match #17738

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 10 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
PHPDoc
  • Loading branch information
dunglas committed Feb 23, 2016
commit 453cc12d94d31cdfb183c1dfa33e48ce203060e9
8 changes: 4 additions & 4 deletions 8 src/Symfony/Component/PropertyAccess/PropertyAccessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ private function writeIndex(&$array, $index, $value)
*
* @throws NoSuchPropertyException If the property does not exist or is not
* public.
* @throws InvalidArgumentException
* @throws \TypeError
*/
private function writeProperty(&$object, $property, $value)
{
Expand Down Expand Up @@ -575,13 +575,13 @@ private function writeProperty(&$object, $property, $value)
}

/**
* Call a method and convert {@see \TypeError} to {@see InvalidArgumentException}.
* Emulates PHP 7 behavior in PHP 5.
*
* @param object $object
* @param string $method
* @param mixed $value
*
* @throws InvalidArgumentException
* @throws \TypeError
* @throws \Exception
*/
private function callMethod($object, $method, $value) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

{ should be on the next line

Expand Down Expand Up @@ -621,7 +621,7 @@ private function callMethod($object, $method, $value) {
* @param string $addMethod The add*() method
* @param string $removeMethod The remove*() method
*
* @throws InvalidArgumentException
* @throws \TypeError
*/
private function writeCollection($object, $property, $collection, $addMethod, $removeMethod)
{
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.