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

mkoula
Backer | 57
+
+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?

David Matějka
Moderator | 6445
+
+2
-

asi ne, ale muzes poslat pull request :)

mkoula
Backer | 57
+
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)

David Grudl
Nette Core | 8227
+
0
-

You're welcome :)