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

Generated PHP files always have native type hints stripped #1

Open
JackNoordhuis opened this issue Jan 28, 2020 · 0 comments
Open

Generated PHP files always have native type hints stripped #1

JackNoordhuis opened this issue Jan 28, 2020 · 0 comments

Comments

@JackNoordhuis
Copy link
Member

JackNoordhuis commented Jan 28, 2020

Currently, haxe always strips the PHP native type hints and generates phpdoc. This is undesirable due to the pocketmine API requiring native type hints for some classes and methods.

We will need a macro of some sort for telling the haxe transpiler which extern methods should retain their native php type hints. Without this, it is impossible to write direct externs for the pocketmine source and a weakly typed wrapper would be needed.

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