Commit 020293c3 authored by Mpro's avatar Mpro

Oprava spatneho nazvu promenne

parent 07dace55
...@@ -123,7 +123,7 @@ abstract class AbstractRestriction ...@@ -123,7 +123,7 @@ abstract class AbstractRestriction
} }
} else { } else {
$type = $property->getType(); $type = $property->getType();
if (!($result = $result instanceof $type)) { if (!($result = $value instanceof $type)) {
throw new \InvalidArgumentException('Unexpected class.'); throw new \InvalidArgumentException('Unexpected class.');
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment