Nette\PhpGenerator\PhpFile a declare(strict_types=1);

25 days ago

mkoula
Generous Backer | 29
+
+1
-

Ahoj,

je nějaká možnost pomocí Nette\PhpGenerator\PhpFile vložit do souboru i declare(strict_types=1), jelikož já žádnou nevidím a je to malá chybička na kráse?

25 days ago

David Matějka
Moderator | 5609
+
+2
-

asi ne, ale muzes poslat pull request :)

24 days ago

mkoula
Generous Backer | 29
+
0
-

Haha, I just went to English forum and I wrote the post in Czech, strange day and switching 3 languages all the time :-D Sorry..

Anyway, I've just checked Github to see the source code for any possible pull request and I can see that @DavidGrudl was faster and it's implemented 16 hours ago… https://github.com/…2730bccee6fd bringing this new method into the PhpFile class

$file->setStrictTypes();

Thank you @DavidGrudl ;-)

Last edited by mkoula (2018-08-29 11:21)

24 days ago

David Grudl
Nette Core | 6766
+
0
-

You're welcome :)