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 8.4] 「非対称可視性プロパティ」の翻訳 #153

Merged
merged 3 commits into from
Nov 14, 2024

Conversation

KentarouTakeda
Copy link
Collaborator

@KentarouTakeda KentarouTakeda commented Nov 9, 2024

翻訳元: php/doc-en#3828

可視性を設定できるようになりました。
読み取り(<literal>get</literal>)と書き込み(<literal>set</literal>)に
異なるスコープを設定できます。具体的には、<literal>set</literal> の可視性を
メインの可視性よりも厳しくする限り、
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getとsetは同じ可視性でもいいので、それが判る訳の方がいいかと思いました。
原文は"not more permissive"なのでそのニュアンスが含まれています。

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ありがとうございます!仰るとおりです。 77615d4 で次の通り修正しました。

修正前: set の可視性メインの可視性よりも厳しくする限り、

修正後: set の可視性メインの可視性より広くならない限り、

@KentarouTakeda KentarouTakeda merged commit abe2346 into php:master Nov 14, 2024
1 check passed
@KentarouTakeda KentarouTakeda deleted the php84-aviz branch November 14, 2024 13:00
@mumumu
Copy link
Member

mumumu commented Dec 4, 2024

Visibility は、可視性ではなく「アクセス権」で統一してきた経緯があることは一応記しておきます。

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 this pull request may close these issues.

3 participants