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
Error on self::class on non final classes
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
shape_remove_key5.php
blob
70b3e09baeb69e159f3124b8d60e07da52777d79
1
<
?hh
//strict
2
3
/**
4
* removeKey allows unsetting any key, but it still must be statically
5
* known
6
*/
7
type s
=
shape
(
8
'x'
=>
int
,
9
'y'
=>
string
,
10
);
11
12
function
test
(
s
$s
,
string
$k
):
void
{
13
Shapes
::
removeKey
(
inout
$s
,
$k
);
14
}