Commit 7d2d2fc3 authored by Mpro's avatar Mpro

Fixed small bug

parent 1efb97e1
...@@ -123,9 +123,6 @@ abstract class AbstractRestriction ...@@ -123,9 +123,6 @@ abstract class AbstractRestriction
} }
} else { } else {
$type = $property->getType(); $type = $property->getType();
if (!($result = $value instanceof $type)) {
throw new \InvalidArgumentException('Unexpected class.');
}
} }
$this->values[$key] = $value; $this->values[$key] = $value;
......
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