Issue #3317658 by pooja saraah, mondrake, ravi.shankar, longwave: Fix HoldTestSubscriber PHPStan L0 issues

(cherry picked from commit 08b0f54bf4)
merge-requests/2923/head
catch 2022-11-02 14:54:34 +00:00
parent 2a3188bd00
commit 3af57f41b4
2 changed files with 3 additions and 8 deletions

View File

@ -59,9 +59,9 @@ class HoldTestSubscriber implements EventSubscriberInterface {
*/
protected function hold($type) {
$path = "{$this->sitePath}/hold_test_$type.txt";
do {
$status = (bool) file_get_contents($path);
} while ($status && (NULL === usleep(static::WAIT)));
while ((bool) file_get_contents($path)) {
usleep(static::WAIT);
}
}
/**

View File

@ -1095,11 +1095,6 @@ parameters:
count: 1
path: modules/system/tests/modules/entity_test/src/Plugin/Field/FieldType/ChangedTestItem.php
-
message: "#^Result of function usleep \\(void\\) is used\\.$#"
count: 1
path: modules/system/tests/modules/hold_test/src/EventSubscriber/HoldTestSubscriber.php
-
message: "#^Configuration entity must define a `config_export` key\\. See https\\://www\\.drupal\\.org/node/2481909$#"
count: 1