Open Zekfad opened 2 years ago
I am currently traveling and can't check this yet.
But do try public function a(): self
instead of Integer
.
Does the problem also happen if the class name is something else, not Integer
?
Best!
self
produces no error, but that's still an issue, because it's a false error report for a valid PHP code.
I haven't tested other names like that yet.
Following code produces errors while it shouldn't: