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

New PHP 8.4 Syntax: Asymmetric visibility #98

Open
KorvinSzanto opened this issue Sep 11, 2024 · 1 comment · May be fixed by #99
Open

New PHP 8.4 Syntax: Asymmetric visibility #98

KorvinSzanto opened this issue Sep 11, 2024 · 1 comment · May be fixed by #99

Comments

@KorvinSzanto
Copy link
Contributor

KorvinSzanto commented Sep 11, 2024

https://wiki.php.net/rfc/asymmetric-visibility-v2

class Foo
{
    PRIVATE(set) string $bar1 = '';
    public private(SET) string $bar2 = '';
    private(set) public string $bar3 = '';

    public function __construct(
        public protected(SET) string $bar4 = ''
    ) {}
}

See this working here: https://3v4l.org/JDXuq/rfc#vgit.master_jit

@KorvinSzanto KorvinSzanto mentioned this issue Sep 11, 2024
9 tasks
@KorvinSzanto
Copy link
Contributor Author

I think we just need to specify order and casing, I don't think we should disallow including the "public".

@Crell Crell linked a pull request Oct 15, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant