Loading core/lib/Drupal/Core/Database/Query/SelectExtender.php +4 −17 Changes for core/lib/Drupal/Core/Database/Query/SelectExtender.php: 4 added lines, 17 removed lines. Original line number Diff line number Diff line Loading @@ -9,20 +9,6 @@ */ class SelectExtender implements SelectInterface { /** * The Select query object we are extending/decorating. * * @var \Drupal\Core\Database\Query\SelectInterface */ protected $query; /** * The connection object on which to run this query. * * @var \Drupal\Core\Database\Connection */ protected $connection; /** * A unique identifier for this query object. * Loading @@ -37,10 +23,11 @@ class SelectExtender implements SelectInterface { */ protected $placeholder = 0; public function __construct(SelectInterface $query, Connection $connection) { public function __construct( protected SelectInterface $query, protected Connection $connection, ) { $this->uniqueIdentifier = bin2hex(random_bytes(12)); $this->query = $query; $this->connection = $connection; } /** Loading core/lib/Drupal/Core/Database/Schema.php +9 −9 Changes for core/lib/Drupal/Core/Database/Schema.php: 9 added lines, 9 removed lines. Original line number Diff line number Diff line Loading @@ -12,13 +12,6 @@ */ abstract class Schema implements PlaceholderInterface { /** * The database connection. * * @var \Drupal\Core\Database\Connection */ protected $connection; /** * The placeholder counter. * Loading Loading @@ -46,9 +39,16 @@ abstract class Schema implements PlaceholderInterface { */ protected $uniqueIdentifier; public function __construct($connection) { /** * Constructs a new Schema object. * * @param \Drupal\Core\Database\Connection $connection * The database connection. */ public function __construct( protected $connection, ) { $this->uniqueIdentifier = bin2hex(random_bytes(12)); $this->connection = $connection; } /** Loading core/lib/Drupal/Core/DependencyInjection/YamlFileLoader.php +3 −7 Changes for core/lib/Drupal/Core/DependencyInjection/YamlFileLoader.php: 3 added lines, 7 removed lines. Original line number Diff line number Diff line Loading @@ -43,11 +43,6 @@ class YamlFileLoader 'autoconfigure' => 'autoconfigure', ]; /** * @var \Drupal\Core\DependencyInjection\ContainerBuilder $container */ protected $container; /** * File cache object. * Loading @@ -55,9 +50,10 @@ class YamlFileLoader */ protected $fileCache; public function __construct(ContainerBuilder $container) public function __construct( protected ContainerBuilder $container ) { $this->container = $container; $this->fileCache = FileCacheFactory::get('container_yaml_loader'); } Loading core/lib/Drupal/Core/Entity/EntityTypeRepository.php +4 −9 Changes for core/lib/Drupal/Core/Entity/EntityTypeRepository.php: 4 added lines, 9 removed lines. Original line number Diff line number Diff line Loading @@ -16,13 +16,6 @@ class EntityTypeRepository implements EntityTypeRepositoryInterface { use StringTranslationTrait; /** * The entity type manager. * * @var \Drupal\Core\Entity\EntityTypeManagerInterface */ protected $entityTypeManager; /** * Contains cached mappings of class names to entity types. * Loading @@ -30,8 +23,10 @@ class EntityTypeRepository implements EntityTypeRepositoryInterface { */ protected $classNameEntityTypeMap = []; public function __construct(EntityTypeManagerInterface $entity_type_manager, protected EntityTypeBundleInfoInterface $entityTypeBundleInfo) { $this->entityTypeManager = $entity_type_manager; public function __construct( protected EntityTypeManagerInterface $entityTypeManager, protected EntityTypeBundleInfoInterface $entityTypeBundleInfo, ) { } /** Loading core/lib/Drupal/Core/Entity/KeyValueStore/Query/QueryFactory.php +3 −9 Changes for core/lib/Drupal/Core/Entity/KeyValueStore/Query/QueryFactory.php: 3 added lines, 9 removed lines. Original line number Diff line number Diff line Loading @@ -12,13 +12,6 @@ */ class QueryFactory implements QueryFactoryInterface { /** * The key value factory. * * @var \Drupal\Core\KeyValueStore\KeyValueFactoryInterface */ protected $keyValueFactory; /** * The namespace of this class, the parent class etc. * Loading @@ -29,8 +22,9 @@ class QueryFactory implements QueryFactoryInterface { /** * Constructs a QueryFactory object. */ public function __construct(KeyValueFactoryInterface $key_value_factory) { $this->keyValueFactory = $key_value_factory; public function __construct( protected KeyValueFactoryInterface $keyValueFactory, ) { $this->namespaces = Query::getNamespaces($this); } Loading Loading
core/lib/Drupal/Core/Database/Query/SelectExtender.php +4 −17 Changes for core/lib/Drupal/Core/Database/Query/SelectExtender.php: 4 added lines, 17 removed lines. Original line number Diff line number Diff line Loading @@ -9,20 +9,6 @@ */ class SelectExtender implements SelectInterface { /** * The Select query object we are extending/decorating. * * @var \Drupal\Core\Database\Query\SelectInterface */ protected $query; /** * The connection object on which to run this query. * * @var \Drupal\Core\Database\Connection */ protected $connection; /** * A unique identifier for this query object. * Loading @@ -37,10 +23,11 @@ class SelectExtender implements SelectInterface { */ protected $placeholder = 0; public function __construct(SelectInterface $query, Connection $connection) { public function __construct( protected SelectInterface $query, protected Connection $connection, ) { $this->uniqueIdentifier = bin2hex(random_bytes(12)); $this->query = $query; $this->connection = $connection; } /** Loading
core/lib/Drupal/Core/Database/Schema.php +9 −9 Changes for core/lib/Drupal/Core/Database/Schema.php: 9 added lines, 9 removed lines. Original line number Diff line number Diff line Loading @@ -12,13 +12,6 @@ */ abstract class Schema implements PlaceholderInterface { /** * The database connection. * * @var \Drupal\Core\Database\Connection */ protected $connection; /** * The placeholder counter. * Loading Loading @@ -46,9 +39,16 @@ abstract class Schema implements PlaceholderInterface { */ protected $uniqueIdentifier; public function __construct($connection) { /** * Constructs a new Schema object. * * @param \Drupal\Core\Database\Connection $connection * The database connection. */ public function __construct( protected $connection, ) { $this->uniqueIdentifier = bin2hex(random_bytes(12)); $this->connection = $connection; } /** Loading
core/lib/Drupal/Core/DependencyInjection/YamlFileLoader.php +3 −7 Changes for core/lib/Drupal/Core/DependencyInjection/YamlFileLoader.php: 3 added lines, 7 removed lines. Original line number Diff line number Diff line Loading @@ -43,11 +43,6 @@ class YamlFileLoader 'autoconfigure' => 'autoconfigure', ]; /** * @var \Drupal\Core\DependencyInjection\ContainerBuilder $container */ protected $container; /** * File cache object. * Loading @@ -55,9 +50,10 @@ class YamlFileLoader */ protected $fileCache; public function __construct(ContainerBuilder $container) public function __construct( protected ContainerBuilder $container ) { $this->container = $container; $this->fileCache = FileCacheFactory::get('container_yaml_loader'); } Loading
core/lib/Drupal/Core/Entity/EntityTypeRepository.php +4 −9 Changes for core/lib/Drupal/Core/Entity/EntityTypeRepository.php: 4 added lines, 9 removed lines. Original line number Diff line number Diff line Loading @@ -16,13 +16,6 @@ class EntityTypeRepository implements EntityTypeRepositoryInterface { use StringTranslationTrait; /** * The entity type manager. * * @var \Drupal\Core\Entity\EntityTypeManagerInterface */ protected $entityTypeManager; /** * Contains cached mappings of class names to entity types. * Loading @@ -30,8 +23,10 @@ class EntityTypeRepository implements EntityTypeRepositoryInterface { */ protected $classNameEntityTypeMap = []; public function __construct(EntityTypeManagerInterface $entity_type_manager, protected EntityTypeBundleInfoInterface $entityTypeBundleInfo) { $this->entityTypeManager = $entity_type_manager; public function __construct( protected EntityTypeManagerInterface $entityTypeManager, protected EntityTypeBundleInfoInterface $entityTypeBundleInfo, ) { } /** Loading
core/lib/Drupal/Core/Entity/KeyValueStore/Query/QueryFactory.php +3 −9 Changes for core/lib/Drupal/Core/Entity/KeyValueStore/Query/QueryFactory.php: 3 added lines, 9 removed lines. Original line number Diff line number Diff line Loading @@ -12,13 +12,6 @@ */ class QueryFactory implements QueryFactoryInterface { /** * The key value factory. * * @var \Drupal\Core\KeyValueStore\KeyValueFactoryInterface */ protected $keyValueFactory; /** * The namespace of this class, the parent class etc. * Loading @@ -29,8 +22,9 @@ class QueryFactory implements QueryFactoryInterface { /** * Constructs a QueryFactory object. */ public function __construct(KeyValueFactoryInterface $key_value_factory) { $this->keyValueFactory = $key_value_factory; public function __construct( protected KeyValueFactoryInterface $keyValueFactory, ) { $this->namespaces = Query::getNamespaces($this); } Loading