php-code-generator
php-code-generator copied to clipboard
PHP code generator library
Change the namespace to `phpowermove\codegen`. This PR is part of a big refactor: by now the tests are red.
Hi, I have some ideas if you approve of i will create a PR for it : - handle types by adding a `PhpType` interface that will be implemented by...
…when setNullable has not been called explicitly. Error was: ``` PHP Fatal error: Uncaught TypeError: Return value of gossi\codegen\model\PhpParameter::getNullable() must be of the type bool, null returned in […]/vendor/gossi/php-code-generator/src/model/parts/TypePart.php:75 Stack...
Hi, wonderfull library, but after several hours, i realize that i cant use it. I would like to use this library to scaffolding my code. With help of AutoIt I...
This line: https://github.com/gossi/php-code-generator/blob/d67b8f9d775710e9401fc1a9306c7b7797860a65/src/model/parts/TypeDocblockGeneratorPart.php#L52 Overwriting @return tag if you define method type. This causes that I'm unable to generate method /** * @return Bar[] */ function Foo(): array
HI, brother, how to set extends class . have this api?
Using the v4 version of `nikic/php-parser` causes various errors when the code is run. This is not showing up in the tests at the moment because the require-dev section needs...
Just used your library to generate some of my doctrine entities. Overall I was very pleased with how things worked. A few suggestions though: 1.) Need a way to insert...
The question is how much is `PhpFunction` used at all? Basically, this library assumes, every code follows PSR-4 (1 file = 1 class/interface/trait). The only use case for functions would...
Hello, My team has been using this library while writing a refactoring tool and we came across an issue. We have several legacy code files which contain global functions and/or...