Issue #3317658 by pooja saraah, mondrake, ravi.shankar, longwave: Fix HoldTestSubscriber PHPStan L0 issues
(cherry picked from commit 08b0f54bf4
)
merge-requests/2923/head
parent
2a3188bd00
commit
3af57f41b4
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue