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
/
slow
/
bad-callable.php
blob
00a03dacecccee938dfba6d94dd99f25608c068b
1
<
?hh
2
// Copyright 2004-present Facebook. All Rights Reserved.
3
4
class
Bad
{};
5
6
function
foo1
() {
return
array_map
(
new
Bad
(), []); }
7
function
foo2
() {
return
array_filter
([],
new
Bad
()); }
8
function
foo3
() {
return
array_reduce
([],
new
Bad
()); }
9
var_dump
(
foo1
());
10
var_dump
(
foo2
());
11
var_dump
(
foo3
());