Commit ffdecfad authored by catch's avatar catch
Browse files

Issue #3274474 by mondrake, longwave, andypost, Spokje, catch, alexpott: Fix...

Issue #3274474 by mondrake, longwave, andypost, Spokje, catch, alexpott: Fix 'Access to an undefined property' PHPStan L0 errors
parent 1781f1fa
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -36,6 +36,11 @@ class CacheContextsManager {
   */
  protected $contexts;

  /**
   * The set of valid context tokens.
   */
  protected array $validContextTokens;

  /**
   * Constructs a CacheContextsManager object.
   *
+7 −1
Original line number Diff line number Diff line
@@ -3,8 +3,9 @@
namespace Drupal\Core\Cache;

use Drupal\Component\Assertion\Inspector;
use Drupal\Core\PhpStorage\PhpStorageFactory;
use Drupal\Component\PhpStorage\PhpStorageInterface;
use Drupal\Component\Utility\Crypt;
use Drupal\Core\PhpStorage\PhpStorageFactory;

/**
 * Defines a PHP cache implementation.
@@ -26,6 +27,11 @@ class PhpBackend implements CacheBackendInterface {
   */
  protected $bin;

  /**
   * The PHP storage.
   */
  protected PhpStorageInterface $storage;

  /**
   * Array to store cache objects.
   */
+10 −0
Original line number Diff line number Diff line
@@ -39,6 +39,16 @@ class QueryFactory implements QueryFactoryInterface, EventSubscriberInterface {
   */
  protected $namespaces;

  /**
   * The key value factory.
   */
  protected KeyValueFactoryInterface $keyValueFactory;

  /**
   * The configuration manager.
   */
  protected ConfigManagerInterface $configManager;

  /**
   * Constructs a QueryFactory object.
   *
+0 −14
Original line number Diff line number Diff line
@@ -35,20 +35,6 @@ public function __construct(Connection $connection, $table, array $options = [])
    $this->table = $table;
  }

  /**
   * {@inheritdoc}
   */
  public function compile(Connection $connection, PlaceholderInterface $queryPlaceholder) {
    return $this->condition->compile($connection, $queryPlaceholder);
  }

  /**
   * {@inheritdoc}
   */
  public function compiled() {
    return $this->condition->compiled();
  }

  /**
   * Executes the TRUNCATE query.
   *
+5 −0
Original line number Diff line number Diff line
@@ -62,6 +62,11 @@ class EntityController implements ContainerInjectionInterface {
   */
  protected $renderer;

  /**
   * The url generator.
   */
  protected UrlGeneratorInterface $urlGenerator;

  /**
   * Constructs a new EntityController.
   *
Loading