Commit 42d5c436 authored by Guillaume Perréal's avatar Guillaume Perréal

CS.

parent 21b80d47
......@@ -130,6 +130,7 @@ class PropertyMetadataFactory
}
$reflection = new \ReflectionClass($leafClassName);
return [false, $reflection->isUserDefined()];
}
......
......@@ -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 ". json_encode($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