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
Have you experienced this issue?
Rate the importance of this bug to you:

 [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 Apr 19 00:01:29 2024 UTC