🐘 Generates neat PHP code for you. Supports new PHP 8.3 features.
Home Page:https://doc.nette.org/php-generator
Geek Repo:Geek Repo
Github PK Tool:Github PK Tool
dakur opened this issue 4 years ago · comments
Version: 3.5.1
class SomeClass { public function something(mixed $param) {} } // ClassType::withBodiesFrom(SomeClass::class) generates: class SomeClass { public function something(?mixed $param) {} }
which is incorrect as null is implicitly contained in mixed.
null
mixed