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

[php] invalid code generated for typed cast to native arrays #10576

Closed
RealyUniqueName opened this issue Jan 28, 2022 · 0 comments
Closed

[php] invalid code generated for typed cast to native arrays #10576

RealyUniqueName opened this issue Jan 28, 2022 · 0 comments
Assignees
Labels
bug platform-php Everything related to PHP
Milestone

Comments

@RealyUniqueName
Copy link
Member

cast(new php.NativeArray(), php.NativeArray);

generates

Boot::typedCast(Boot::getClass('Dynamic'), []);

which leads to the following exception at runtime:

Error: Cannot cast [] to Dynamic
#0 /home/alex<...>
#1 <...>
<...>
@RealyUniqueName RealyUniqueName added bug platform-php Everything related to PHP labels Jan 28, 2022
@RealyUniqueName RealyUniqueName added this to the Hotfix milestone Jan 28, 2022
@RealyUniqueName RealyUniqueName self-assigned this Jan 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug platform-php Everything related to PHP
Projects
None yet
Development

No branches or pull requests

1 participant