diff --git a/core/modules/system/tests/modules/hold_test/src/EventSubscriber/HoldTestSubscriber.php b/core/modules/system/tests/modules/hold_test/src/EventSubscriber/HoldTestSubscriber.php index 523e257f7004b6b94a8385997660524b18d5341a..5ccb0ecb648c0063b7aa3c4d4d840d1c3a30ce4c 100644 --- a/core/modules/system/tests/modules/hold_test/src/EventSubscriber/HoldTestSubscriber.php +++ b/core/modules/system/tests/modules/hold_test/src/EventSubscriber/HoldTestSubscriber.php @@ -59,9 +59,9 @@ public function onRespond() { */ 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); + } } /** diff --git a/core/phpstan-baseline.neon b/core/phpstan-baseline.neon index 84c7464fad43163d8af21576411313983ca910aa..89c13f6a8d8361e2d261b8782e200f749b395ea9 100644 --- a/core/phpstan-baseline.neon +++ b/core/phpstan-baseline.neon @@ -1085,11 +1085,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