Commit 3af57f41 authored by catch's avatar catch
Browse files

Issue #3317658 by pooja saraah, mondrake, ravi.shankar, longwave: Fix...

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

(cherry picked from commit 08b0f54b)
parent 2a3188bd
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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);
    }
  }

  /**
+0 −5
Original line number Diff line number Diff line
@@ -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