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

Support valinor mapping #3092

Open
momala454 opened this issue Oct 17, 2024 · 2 comments
Open

Support valinor mapping #3092

momala454 opened this issue Oct 17, 2024 · 2 comments
Labels

Comments

@momala454
Copy link

Feature description or problem with existing feature
intelphense doesn't recognise the type once mapped using valinor

Describe the solution you'd like

function hello(string $a): void
{
    $blah = (new \CuyZ\Valinor\MapperBuilder())
    ->allowSuperfluousKeys()
    ->allowPermissiveTypes()
    ->mapper()
    ->map('string', \CuyZ\Valinor\Mapper\Source\Source::json($a));

    world($blah);
}

function world(string $b): void
{
}

Additional context
Error shown :
image

@bmewburn bmewburn added the bug label Oct 17, 2024
@bmewburn
Copy link
Owner

I was unable to repro in 1.13 . Is it still a problem?

@momala454
Copy link
Author

yes it still occurs in 1.13.1

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants