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

Loading class from file doesn't support promoted parameters #103

Closed
SneedusSnake opened this issue Mar 8, 2022 · 0 comments
Closed

Loading class from file doesn't support promoted parameters #103

SneedusSnake opened this issue Mar 8, 2022 · 0 comments

Comments

@SneedusSnake
Copy link

When I'm trying to use
Nette\PhpGenerator\PhpFile::fromCode
it loses promoted property of constructor parameters for some reason (e.g __constructor(public ?string $name) {} becomes __constructor(?string $name) {}
I also cannot turn off autoresolving while using this method, so my types use full import:
Request $request becomes Illuminate\Http\Request $request

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

1 participant