Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nette\PhpGenerator\Method::setBody(): Argument #1 ($code) must be of type string, null given, called in vendor\kdyby\events\src\Events\DI\EventsExtension.php on line 185 #130

Closed
Honzy opened this issue Mar 14, 2022 · 1 comment

Comments

@Honzy
Copy link

Honzy commented Mar 14, 2022

Zdravim,

pri aktualizaci nette/di v3.0.12 -> v3.0.13 vyskoci TypeError: Nette\PhpGenerator\Method::setBody(): Argument #1 ($code) must be of type string, null given, called in vendor\kdyby\events\src\Events\DI\EventsExtension.php on line 185

Staci prepsat $init->setBody(NULL); -> $init->setBody('');, ale toto mi neprislo jako spravne reseni, takze misto PR volim radeji new isssue.

Dekuji za opravu.

@Spamercz
Copy link
Member

Koukali jsme na to a přijde mi že se to snaží vynulovat body což se docílí právě tím co píšeš, tak asi dobrý viz #131

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants