Skip to content

Commit dad63c7

Browse files
committed
Fix cs
1 parent 12ee656 commit dad63c7

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/Reflection/Php/PhpMethodReflection.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -330,11 +330,9 @@ private function getNativeReturnType(): Type
330330
return $this->nativeReturnType = new VoidType();
331331
}
332332
if ($name === '__tostring') {
333-
if ($this->declaringClass->isBuiltin()) {
334-
return $this->nativeReturnType = new StringType();
335-
} else {
336-
return $this->nativeReturnType = new MixedType();
337-
}
333+
return $this->nativeReturnType = $this->declaringClass->isBuiltin()
334+
? new StringType()
335+
: new MixedType();
338336
}
339337
if ($name === '__isset') {
340338
return $this->nativeReturnType = new BooleanType();

0 commit comments

Comments
 (0)