Closed dakur closed 3 years ago
Not sure if more places are affected, I've fixed only this one.
It will probably also apply to properties and return values, right?
Will it work with uppercase 'MIXED'?
Frankly said, I have no idea. 🤷♂️ I just wanted to sketch where the problem lies and what looks like solution. But I don't know the code base much (or at all), so I rather pass it on people more familiar with it.
fixed
@dg It is not fixed in 3.5.2. Probably something got wrong when rebasing? Factory#fromMethodReflection()
still relies on allowsNull()
Aha, there should be probably ! strcmp()
in here: https://github.com/nette/php-generator/blob/41dcc5d1cb322835e5950a76515166c90923c6b7/src/PhpGenerator/Printer.php#L296
@dg Ok, it works, sorry, I've screwed up my expected
test file during previous testing.