Skip to content

Commit 416f81a

Browse files
committed
Suppress notice in run-tests.php
1 parent 0c22692 commit 416f81a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

run-tests.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1068,13 +1068,13 @@ function find_files(string $dir, bool $is_ext_dir = false, bool $ignore = false)
10681068
}
10691069

10701070
// Cleanup any left-over tmp files from last run.
1071-
if (substr($name, -4) == '.tmp') {
1071+
if (@substr($name, -4) === '.tmp') {
10721072
@unlink("$dir/$name");
10731073
continue;
10741074
}
10751075

10761076
// Otherwise we're only interested in *.phpt files.
1077-
if (substr($name, -5) == '.phpt') {
1077+
if (@substr($name, -5) === '.phpt') {
10781078
if ($ignore) {
10791079
$ignored_by_ext++;
10801080
} else {

0 commit comments

Comments
 (0)