Skip to content

Commit a5c48d0

Browse files
author
catch
committed
Issue #3328454 by xjm, Bhanu951, jidrone, smustgrave: Replace most strpos() !== FALSE or === FALSE with str_contains()
1 parent 871a461 commit a5c48d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Operations/AppendOp.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ protected function existingFileHasData($contents, $data_path) {
201201
}
202202
$data = file_get_contents($data_path->fullPath());
203203

204-
return strpos($contents, $data) !== FALSE;
204+
return str_contains($contents, $data);
205205
}
206206

207207
}

0 commit comments

Comments
 (0)