@@ -36,8 +36,7 @@ discard block |
||
| 36 | 36 | { |
| 37 | 37 | if (!$this->reflect->properties->contains($property)) |
| 38 | 38 | { |
| 39 | - throw new CannotWritePropertyException |
|
| 40 | - ( |
|
| 39 | + throw new CannotWritePropertyException( |
|
| 41 | 40 | get_class($this->object), $property |
| 42 | 41 | ); |
| 43 | 42 | } |
@@ -113,8 +112,7 @@ discard block |
||
| 113 | 112 | } |
| 114 | 113 | elseif (is_object($value) && method_exists([$value, $method])) |
| 115 | 114 | { |
| 116 | - $this->setScalarValue |
|
| 117 | - ( |
|
| 115 | + $this->setScalarValue( |
|
| 118 | 116 | $property, |
| 119 | 117 | $value->$method(), |
| 120 | 118 | $method, |
@@ -153,8 +151,7 @@ discard block |
||
| 153 | 151 | |
| 154 | 152 | private function throwError($property, $expected, $value) |
| 155 | 153 | { |
| 156 | - throw new IllegalPropertyTypeException |
|
| 157 | - ( |
|
| 154 | + throw new IllegalPropertyTypeException( |
|
| 158 | 155 | get_class($this->object), |
| 159 | 156 | $property, |
| 160 | 157 | $expected, |