repo.or.cz
/
hiphop-php.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Handle this typehints
[hiphop-php.git]
/
hphp
/
test
/
quick
/
closure_get_class.php
blob
68ca677e9a2db90a7ee904149f33554ff11c7ff5
1
<
?hh
2
3
trait Too
{
4
function
bar
() {
5
$a
=
function
() {
6
var_dump
(
__CLASS__
);
7
};
8
$a
();
9
$a
=
function
() {
10
var_dump
(
get_class
());
11
};
12
$a
();
13
if
(
isset
(
$this
)) {
14
$a
=
function
() {
15
var_dump
(
get_class
(
$this
));
16
};
17
$a
();
18
}
19
}
20
}
21
class
Foo
{
use
Too
; }
22
23
$f
=
new
Foo
;
24
echo
"Between
\n
"
;
25
$f
->
bar
();
26
echo
"Between
\n
"
;
27
$f
::
bar
();
28
echo
"Between
\n
"
;
29
Foo
::
bar
();