php-generator icon indicating copy to clipboard operation
php-generator copied to clipboard

🐘 Generates neat PHP code for you. Supports new PHP 8.3 features.

Results 12 php-generator issues
Sort by recently updated
recently updated
newest added

We have built [grifart/caffolder](https://github.com/grifart/scaffolder) on top of php-generator. As we need to also read the state from php-generator I have found an inconsistency with php-reflection. With php reflection you get...

We use [php-cs-fixer](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer) to format out code to be aligned with [PER coding style](https://php-fig.org/per/coding-style/). This library comes close by supporting PSR-12 but there are some minor differences. One in particular...

- new feature - BC break? yes - doc PR: nette/docs#??? When reading a `ClassType` from a FQCN or a file, the result can be anything from the 4 subclasses....

- bug fix - BC break? no Before ```php use App\QueryCostSet; use App\QueryCostsBootstrapped; ``` After ```php use App\QueryCostsBootstrapped; use App\QueryCostSet; ```

Version: 4.1.3 ### Bug Description `getType` does not return correct type ### Steps To Reproduce ```php $class = new ClassType('Hello'); $method = $class->addMethod('greeting'); $param = $method->addParameter('name', null) ->setType('string') ->setNullable(); echo...

I can't find a substitution for this piece of code without using the `getNamespace()` method: ``` $class = ClassType::from($myClass, true); $namespace = $class->getNamespace(); $namespace->addUse(DateTimeInterface::class); ``` Alternative method should at least...

Repo: https://github.com/Roave/BetterReflection My use case: For my library https://github.com/okapi-web/php-aop I need to create copies of classes and modify them. But I am not allowed to autoload them, I have to...

Version: `6.36.0` ### Bug Description When using `$method = (new Factory)->fromMethodReflection($refMethod);` and printing the code with `$method->__toString();` the `readonly` keyword is missing. ### Steps To Reproduce ```php class Number {...

Version: 4.1.5 ### Bug Description I generated a class, and added a property which type is not a basic PHP type, it's another class. When I echo the PhpFile, the...

Version: v4.1.8 ### Bug Description Creating a class with the name "Enum" does not work because its in the keyword list. ### Steps To Reproduce ```php $file = new PhpFile();...