Skip to content

Commit 14a14ae

Browse files
Kharhamelmoufmouf
andauthored
Apply suggestions from code review
Co-Authored-By: David Négrier <[email protected]>
1 parent b8ae8d5 commit 14a14ae

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/special_cases.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,11 +165,10 @@ function preg_replace($pattern, $replacement, $subject, int $limit = -1, int &$c
165165
* @param resource|null $dir_handle
166166
* @return string|false
167167
* @deprecated
168-
* This function sis only in safe because the php documentation is wrong
168+
* This function is only in safe because the php documentation is wrong
169169
*/
170170
function readdir($dir_handle = null)
171171
{
172-
error_clear_last();
173172
if ($dir_handle !== null) {
174173
$result = \readdir($dir_handle);
175174
} else {

0 commit comments

Comments
 (0)