mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-24 11:44:14 +01:00
12 lines
331 B
Diff
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();
|