|
@@ -24,7 +24,7 @@ discard block |
|
|
block discarded – undo |
|
24
|
24
|
*/ |
|
25
|
25
|
public function getParentClasses(string $class) |
|
26
|
26
|
{ |
|
27
|
|
- if (! class_exists($class)) { |
|
|
27
|
+ if (!class_exists($class)) { |
|
28
|
28
|
throw MappingException::nonExistingClass($class); |
|
29
|
29
|
} |
|
30
|
30
|
|
|
@@ -66,7 +66,7 @@ discard block |
|
|
block discarded – undo |
|
66
|
66
|
{ |
|
67
|
67
|
$reflectionProperty = new ReflectionProperty($class, $property); |
|
68
|
68
|
|
|
69
|
|
- if (! array_key_exists($property, $this->getClass($class)->getDefaultProperties())) { |
|
|
69
|
+ if (!array_key_exists($property, $this->getClass($class)->getDefaultProperties())) { |
|
70
|
70
|
$reflectionProperty = new TypedNoDefaultReflectionProperty($class, $property); |
|
71
|
71
|
} elseif ($reflectionProperty->isPublic()) { |
|
72
|
72
|
$reflectionProperty = new RuntimePublicReflectionProperty($class, $property); |
Please login to merge, or discard this patch.