@@ -446,6 +446,7 @@ function main()
446
446
break ;
447
447
case 'r ' :
448
448
case 'l ' :
449
+ // @Dragoonis
449
450
$ test_list = file ($ argv [++$ i ]);
450
451
if ($ test_list ) {
451
452
foreach ($ test_list as $ test ) {
@@ -1071,7 +1072,7 @@ function test_sort($a, $b)
1071
1072
// Send Email to QA Team
1072
1073
//
1073
1074
1074
- function mail_qa_team ($ data , $ status = false )
1075
+ function mail_qa_team ($ data , $ status = false ): bool
1075
1076
{
1076
1077
$ url_bits = parse_url (QA_SUBMISSION_PAGE );
1077
1078
@@ -1110,7 +1111,7 @@ function mail_qa_team($data, $status = false)
1110
1111
fwrite ($ fs , "\r\n\r\n" );
1111
1112
fclose ($ fs );
1112
1113
1113
- return 1 ;
1114
+ return true ;
1114
1115
}
1115
1116
1116
1117
//
@@ -1634,15 +1635,15 @@ function run_all_tests_parallel($test_files, $env, $redir_tested)
1634
1635
}
1635
1636
}
1636
1637
1637
- function send_message ($ stream , array $ message )
1638
+ function send_message ($ stream , array $ message ): void
1638
1639
{
1639
1640
$ blocking = stream_get_meta_data ($ stream )["blocked " ];
1640
1641
stream_set_blocking ($ stream , true );
1641
1642
fwrite ($ stream , base64_encode (serialize ($ message )) . "\n" );
1642
1643
stream_set_blocking ($ stream , $ blocking );
1643
1644
}
1644
1645
1645
- function kill_children (array $ children )
1646
+ function kill_children (array $ children ): void
1646
1647
{
1647
1648
foreach ($ children as $ child ) {
1648
1649
if ($ child ) {
@@ -1651,7 +1652,7 @@ function kill_children(array $children)
1651
1652
}
1652
1653
}
1653
1654
1654
- function run_worker ($ workerID )
1655
+ function run_worker ($ workerID ): void
1655
1656
{
1656
1657
global $ workerSock ;
1657
1658
0 commit comments