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
Disallow ... without type in function typehints
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
const_collections_are_const.php
blob
e0d3d9e335f49cccfdb00daa6cacd3bd1c59e9ad
1
<
?hh
// strict
2
// Copyright 2004-present Facebook. All Rights Reserved.
3
4
class
A
{
5
const array
<
string
>
FOO
=
array
(
'bar'
,
'foo'
);
6
7
public function
modify_const
():
void
{
8
self
::
FOO
[
0
] =
'invalid'
;
9
}
10
}