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
/
continue_naming_terminal.php
blob
811f95a46ef2af0325c001014df1283b24f5ef14
1
<
?hh
// partial
2
/**
3
* Copyright (c) 2014, Facebook, Inc.
4
* All rights reserved.
5
*
6
* This source code is licensed under the MIT license found in the
7
* LICENSE file in the "hack" directory of this source tree.
8
*
9
*
10
*/
11
12
function
foo
(
array
<
int
>
$arr
):
void
{
13
foreach
(
$arr
as
$a
) {
14
if
(
$a
==
1
) {
15
$b
=
1
;
16
}
else
{
17
continue
;
18
}
19
echo
$b
;
20
}
21
}