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

Simple Property Hook causes Unrecognized functionlike exception #11208

Open
LordSimal opened this issue Jan 26, 2025 · 1 comment
Open

Simple Property Hook causes Unrecognized functionlike exception #11208

LordSimal opened this issue Jan 26, 2025 · 1 comment
Milestone

Comments

@LordSimal
Copy link

LordSimal commented Jan 26, 2025

https://psalm.dev/r/0b76419bb4

Psalm 6.0.0
PHP 8.4

Copy link

I found these snippets:

https://psalm.dev/r/0b76419bb4
<?php

class Test {
    public int $test {
        get {
            return $this->test;
        }
        set(int $value) {
            $this->test = $value;
        }   
    }
}
Psalm encountered an internal error:

/vendor/vimeo/psalm/src/Psalm/Internal/PhpVisitor/Reflector/FunctionLikeNodeScanner.php: Unrecognized functionlike

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

No branches or pull requests

3 participants