@@ -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
//
@@ -1633,15 +1634,15 @@ function run_all_tests_parallel($test_files, $env, $redir_tested)
1633
1634
}
1634
1635
}
1635
1636
1636
- function send_message ($ stream , array $ message )
1637
+ function send_message ($ stream , array $ message ): void
1637
1638
{
1638
1639
$ blocking = stream_get_meta_data ($ stream )["blocked " ];
1639
1640
stream_set_blocking ($ stream , true );
1640
1641
fwrite ($ stream , base64_encode (serialize ($ message )) . "\n" );
1641
1642
stream_set_blocking ($ stream , $ blocking );
1642
1643
}
1643
1644
1644
- function kill_children (array $ children )
1645
+ function kill_children (array $ children ): void
1645
1646
{
1646
1647
foreach ($ children as $ child ) {
1647
1648
if ($ child ) {
@@ -1650,7 +1651,7 @@ function kill_children(array $children)
1650
1651
}
1651
1652
}
1652
1653
1653
- function run_worker ($ workerID )
1654
+ function run_worker ($ workerID ): void
1654
1655
{
1655
1656
global $ workerSock ;
1656
1657
0 commit comments