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

Emet une erreur correcte dans PHPClass pour un argument incorrect.

Showing with 1 addition and 1 deletion
+1 -1
......@@ -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 = [];
......
Supports Markdown
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