Commit c59b3981 authored by Guillaume Perréal's avatar Guillaume Perréal

Emet une erreur correcte dans PHPClass pour un argument incorrect.

parent 3839fa70
......@@ -95,7 +95,7 @@ final class PHPClass implements ClassName
} elseif ($name instanceof \ReflectionClass) {
$name = $name->getName();
} elseif (!\is_string($name)) {
throw new InvalidArgumentException(__METHOD__ . " argument should be a string, ClassName or ReflectionClass, not $name");
throw new InvalidArgumentException(__METHOD__ . " argument should be a string, ClassName or ReflectionClass, not ". json_encode($name));
}
static $instances = [];
......
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