Unverified Commit 7f3ab430 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3257654 by mondrake: Fix PHPStan L0 failures that cannot be included in baseline

(cherry picked from commit a0b2090a)
(cherry picked from commit a5f202d3)
parent fa4a632f
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -73,6 +73,8 @@ public function guessMimeType(string $path) : ?string {
        return $mime_type;
      }
    }

    return NULL;
  }

  /**
+1 −0
Original line number Diff line number Diff line
@@ -118,6 +118,7 @@ public function isEmpty() {
  /**
   * {@inheritdoc}
   */
  #[\ReturnTypeWillChange]
  public function offsetExists($offset) {
    $this->ensureComputedValue();
    return parent::offsetExists($offset);
+1 −0
Original line number Diff line number Diff line
@@ -30,6 +30,7 @@ public function get($index) {
  /**
   * {@inheritdoc}
   */
  #[\ReturnTypeWillChange]
  public function offsetExists($offset) {
    // For consistency with what happens in get(), we force offsetExists() to
    // be TRUE for delta 0.
+1 −0
Original line number Diff line number Diff line
@@ -113,6 +113,7 @@ public function getIds() {
  /**
   * {@inheritdoc}
   */
  #[\ReturnTypeWillChange]
  public function count($refresh = FALSE) {
    // We do not want this source plugin to have a cacheable count.
    // @see \Drupal\migrate_cache_counts_test\Plugin\migrate\source\CacheableEmbeddedDataSource
+1 −0
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@ class CacheableEmbeddedDataSource extends EmbeddedDataSource {
  /**
   * {@inheritdoc}
   */
  #[\ReturnTypeWillChange]
  public function count($refresh = FALSE) {
    return SourcePluginBase::count($refresh);
  }
Loading