rector/patches/better-reflection-php-parser-reflection-class-get-short-name.patch
2017-09-29 13:45:56 +02:00

12 lines
331 B
Diff

--- /dev/null
+++ roave/better-reflection/src/Reflection/ReflectionClass.php
@@ -175,7 +175,7 @@
public function getShortName() : string
{
if ( ! $this->isAnonymous()) {
- return $this->node->name;
+ return (string) $this->node->name;
}
$fileName = $this->getFileName();