Commit 1efb97e1 authored by Mpro's avatar Mpro

Oprava var_export pro Restriction, ktera ma nekonecnou rekurzi

parent 020293c3
...@@ -39,7 +39,11 @@ class Repository extends AbstractRepository ...@@ -39,7 +39,11 @@ class Repository extends AbstractRepository
if (is_callable($notFoundCallback)) { if (is_callable($notFoundCallback)) {
$notFoundCallback($id); $notFoundCallback($id);
} else { } else {
throw new InvalidArgumentException('Not found: ' . var_export($id, TRUE)); if ($id instanceof Restriction) {
throw new InvalidArgumentException('Not found');
} else {
throw new InvalidArgumentException('Not found: ' . var_export($id, TRUE));
}
} }
} }
......
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