php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #71968 Access Modifier in Class Level
Submitted: 2016-04-05 13:42 UTC Modified: 2018-08-09 21:52 UTC
Votes:3
Avg. Score:2.7 ± 1.2
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: dey dot sanjoy0 at gmail dot com Assigned:
Status: Suspended Package: *General Issues
PHP Version: 7.0.5 OS: Any
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: dey dot sanjoy0 at gmail dot com
New email:
PHP Version: OS:

 

 [2016-04-05 13:42 UTC] dey dot sanjoy0 at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/migration70.new-features
---

As we see PHP has lot of cool features in recent version PHP 7. I would suggest to have a class level access modifier support. Most of the popular language like Java, C# has such feature. 

For example:

public class A
{
   public function hello()
   {

   }
}



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-04-09 09:36 UTC] krakjoe@php.net
-Status: Open +Status: Suspended
 [2016-04-09 09:36 UTC] krakjoe@php.net
For this kind of change, an RFC is required.

Please see: http://wiki.php.net/rfc/howto
 [2018-08-09 21:52 UTC] cmb@php.net
Related RFC draft: <https://wiki.php.net/rfc/namespace-visibility>.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 01 17:01:34 2025 UTC