[VarDumper] Fix ClassStub ellipsis

This commit is contained in:
Roland Franssen 2018-11-25 13:50:42 +01:00
parent f9414a8e81
commit 88f4ba165f

View File

@ -74,8 +74,8 @@ class ClassStub extends ConstStub
} catch (\ReflectionException $e) {
return;
} finally {
if (0 < $i = strrpos($identifier, '\\')) {
$this->attr['ellipsis'] = \strlen($identifier) - $i;
if (0 < $i = strrpos($this->value, '\\')) {
$this->attr['ellipsis'] = \strlen($this->value) - $i;
$this->attr['ellipsis-type'] = 'class';
$this->attr['ellipsis-tail'] = 1;
}