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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 02:01:30 2024 UTC