Bug #54441 [Opn->Asn]: Traits - Visibility on alias names
| From: | felipe@php.net | Date: | Sat, 02 Apr 2011 16:05:09 +0000 |
| Subject: | Bug #54441 [Opn->Asn]: Traits - Visibility on alias names | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-159911@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=54441&edit=1
ID: 54441
Updated by: felipe@php.net
Reported by: php-svn at helio dot arq dot br
Summary: Traits - Visibility on alias names
-Status: Open
+Status: Assigned
Type: Bug
Package: Unknown/Other Function
Operating System: Linux
PHP Version: trunk-SVN-2011-04-01 (snap)
-Assigned To:
+Assigned To: gron
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2011-04-01 12:47:43] php-svn at helio dot arq dot br
Description:
------------
I'm trying Traits in php-trunk version.
In a give moment, I tried to change visibility in a alias trait's
method.
Test script:
---------------
trait Foo {
public static function lol() {
echo 'Foo!';
}
}
class Boo {
use Foo {
Foo::lol as dontKnow;
dontKnow as protected;
}
}
$boo = new Boo();
$boo->dontKnow();
Expected result:
----------------
Fatal error: Call to protected method Boo::dontKnow() from context '' in
%s on line %d
Actual result:
--------------
Foo!
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=54441&edit=1