-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[stable29] Fix remaining readdir() calls in loops with undesirable false evaluation potential #49228
Conversation
@@ -261,7 +261,7 @@ | |||
} | |||
|
|||
$dh = $this->opendir($path); | |||
while ($file = readdir($dh)) { | |||
while (($file = readdir($dh)) !== false) { |
Check notice
Code scanning / Psalm
PossiblyFalseArgument Note
@@ -527,7 +527,7 @@ | |||
} | |||
|
|||
$dh = $this->opendir($source); | |||
while ($file = readdir($dh)) { | |||
while (($file = readdir($dh)) !== false) { |
Check notice
Code scanning / Psalm
PossiblyFalseArgument Note
@yemkareems can you please remove the |
…luation potential Signed-off-by: Josh Richards <josh.t.richards@gmail.com> [skip ci]
Signed-off-by: yemkareems <yemkareems@gmail.com>
1463e24
to
051af1a
Compare
@susnux for some reason |
Backport of #38630
Warning, This backport's changes differ from the original and might be incomplete⚠️
Todo
Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.