summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorcatch <6915-catch@users.noreply.drupalcode.org>2024-08-30 17:00:33 +0900
committercatch <6915-catch@users.noreply.drupalcode.org>2024-08-30 17:00:33 +0900
commita7180bf1fa3582a8000445e6babf818222049d5d (patch)
treed2f5abb264e8336c553869b299f3958cdc33e003
parentca51d6e99c2f0cfa088d9da2f1a47dd4e3555fa6 (diff)
downloaddrupal-a7180bf1fa3582a8000445e6babf818222049d5d.tar.gz
drupal-a7180bf1fa3582a8000445e6babf818222049d5d.zip
Issue #3467405 by quietone, smustgrave: Missing @var annotation for properties that provide default values
-rw-r--r--core/lib/Drupal/Component/Datetime/DateTimePlus.php6
-rw-r--r--core/lib/Drupal/Component/Transliteration/PhpTransliteration.php2
-rw-r--r--core/lib/Drupal/Core/Access/CheckProvider.php2
-rw-r--r--core/lib/Drupal/Core/Cache/MemoryBackend.php2
-rw-r--r--core/lib/Drupal/Core/Cache/PhpBackend.php2
-rw-r--r--core/lib/Drupal/Core/Database/Query/Condition.php2
-rw-r--r--core/lib/Drupal/Core/Flood/MemoryBackend.php2
-rw-r--r--core/lib/Drupal/Core/Menu/MenuLinkTreeElement.php2
-rw-r--r--core/modules/help/tests/src/Functional/HelpTest.php4
-rw-r--r--core/modules/help/tests/src/Functional/NoHelpTest.php2
-rw-r--r--core/modules/locale/tests/src/Functional/LocaleExportTest.php2
-rw-r--r--core/modules/migrate/tests/src/Functional/MigrateMessageTestBase.php2
-rw-r--r--core/modules/migrate_drupal/tests/src/Unit/source/DrupalSqlBaseTest.php4
-rw-r--r--core/modules/migrate_drupal/tests/src/Unit/source/d6/Drupal6SqlBaseTest.php4
-rw-r--r--core/modules/node/tests/src/Functional/NodeAccessBaseTableTest.php2
-rw-r--r--core/modules/node/tests/src/Functional/NodeAccessGrantsCacheContextTest.php8
-rw-r--r--core/modules/node/tests/src/Functional/NodeEntityViewModeAlterTest.php2
-rw-r--r--core/modules/node/tests/src/Functional/NodeQueryAlterTest.php4
-rw-r--r--core/modules/pgsql/src/Driver/Database/pgsql/Connection.php2
-rw-r--r--core/modules/responsive_image/tests/src/Functional/ViewsIntegrationTest.php2
-rw-r--r--core/modules/rest/tests/src/Functional/Views/StyleSerializerEntityTest.php4
-rw-r--r--core/modules/rest/tests/src/Functional/Views/StyleSerializerTest.php2
-rw-r--r--core/modules/sqlite/src/Driver/Database/sqlite/Connection.php2
-rw-r--r--core/modules/system/tests/src/Functional/Datetime/DrupalDateTimeTest.php2
-rw-r--r--core/modules/user/src/Plugin/views/wizard/Users.php2
-rw-r--r--core/modules/views/src/Plugin/views/cache/CachePluginBase.php2
-rw-r--r--core/modules/views/src/Plugin/views/filter/FilterPluginBase.php13
-rw-r--r--core/modules/views/src/Plugin/views/query/MysqlDateSql.php2
-rw-r--r--core/modules/views/src/Plugin/views/query/Sql.php22
-rw-r--r--core/modules/views/src/Plugin/views/style/StylePluginBase.php2
-rw-r--r--core/tests/Drupal/FunctionalTests/Installer/InstallerConfigDirectoryTestBase.php4
-rw-r--r--core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBase.php2
-rw-r--r--core/tests/Drupal/Tests/Core/Asset/AssetResolverTest.php2
33 files changed, 114 insertions, 5 deletions
diff --git a/core/lib/Drupal/Component/Datetime/DateTimePlus.php b/core/lib/Drupal/Component/Datetime/DateTimePlus.php
index 08734733dea..35f2e80f0d3 100644
--- a/core/lib/Drupal/Component/Datetime/DateTimePlus.php
+++ b/core/lib/Drupal/Component/Datetime/DateTimePlus.php
@@ -54,6 +54,8 @@ class DateTimePlus {
/**
* An array of possible date parts.
+ *
+ * @var string[]
*/
protected static $dateParts = [
'year',
@@ -108,11 +110,15 @@ class DateTimePlus {
/**
* The value of the language code passed to the constructor.
+ *
+ * @var string|null
*/
protected $langcode = NULL;
/**
* An array of errors encountered when creating this date.
+ *
+ * @var string[]
*/
protected $errors = [];
diff --git a/core/lib/Drupal/Component/Transliteration/PhpTransliteration.php b/core/lib/Drupal/Component/Transliteration/PhpTransliteration.php
index 781c088cfec..3bce69b4c4b 100644
--- a/core/lib/Drupal/Component/Transliteration/PhpTransliteration.php
+++ b/core/lib/Drupal/Component/Transliteration/PhpTransliteration.php
@@ -67,6 +67,8 @@ class PhpTransliteration implements TransliterationInterface {
* transliterates to more than one ASCII character require special
* treatment: we want to remove their accent and use the un-
* transliterated base character.
+ *
+ * @var string[]
*/
protected $fixTransliterateForRemoveDiacritics = [
'AE' => 'Æ',
diff --git a/core/lib/Drupal/Core/Access/CheckProvider.php b/core/lib/Drupal/Core/Access/CheckProvider.php
index 565037af5bb..d7a8540332f 100644
--- a/core/lib/Drupal/Core/Access/CheckProvider.php
+++ b/core/lib/Drupal/Core/Access/CheckProvider.php
@@ -35,6 +35,8 @@ class CheckProvider implements CheckProviderInterface {
/**
* Array of access checks which only will be run on the incoming request.
+ *
+ * @var string[]
*/
protected $checksNeedsRequest = [];
diff --git a/core/lib/Drupal/Core/Cache/MemoryBackend.php b/core/lib/Drupal/Core/Cache/MemoryBackend.php
index 3020557baf0..7f0e337e33d 100644
--- a/core/lib/Drupal/Core/Cache/MemoryBackend.php
+++ b/core/lib/Drupal/Core/Cache/MemoryBackend.php
@@ -24,6 +24,8 @@ class MemoryBackend implements CacheBackendInterface, CacheTagsInvalidatorInterf
/**
* Array to store cache objects.
+ *
+ * @var object[]
*/
protected $cache = [];
diff --git a/core/lib/Drupal/Core/Cache/PhpBackend.php b/core/lib/Drupal/Core/Cache/PhpBackend.php
index 4ba89c6a45b..52b7202982f 100644
--- a/core/lib/Drupal/Core/Cache/PhpBackend.php
+++ b/core/lib/Drupal/Core/Cache/PhpBackend.php
@@ -35,6 +35,8 @@ class PhpBackend implements CacheBackendInterface {
/**
* Array to store cache objects.
+ *
+ * @var object[]
*/
protected $cache = [];
diff --git a/core/lib/Drupal/Core/Database/Query/Condition.php b/core/lib/Drupal/Core/Database/Query/Condition.php
index 2e738bf916b..06cb31568c2 100644
--- a/core/lib/Drupal/Core/Database/Query/Condition.php
+++ b/core/lib/Drupal/Core/Database/Query/Condition.php
@@ -12,6 +12,8 @@ class Condition implements ConditionInterface, \Countable {
/**
* Provides a map of condition operators to condition operator options.
+ *
+ * @var string[][]
*/
protected static $conditionOperatorMap = [
'BETWEEN' => ['delimiter' => ' AND '],
diff --git a/core/lib/Drupal/Core/Flood/MemoryBackend.php b/core/lib/Drupal/Core/Flood/MemoryBackend.php
index 29d13468eba..b25e5e734ab 100644
--- a/core/lib/Drupal/Core/Flood/MemoryBackend.php
+++ b/core/lib/Drupal/Core/Flood/MemoryBackend.php
@@ -18,6 +18,8 @@ class MemoryBackend implements FloodInterface, PrefixFloodInterface {
/**
* An array holding flood events, keyed by event name and identifier.
+ *
+ * @var array
*/
protected $events = [];
diff --git a/core/lib/Drupal/Core/Menu/MenuLinkTreeElement.php b/core/lib/Drupal/Core/Menu/MenuLinkTreeElement.php
index 1c7af4b9926..13e35ae27ed 100644
--- a/core/lib/Drupal/Core/Menu/MenuLinkTreeElement.php
+++ b/core/lib/Drupal/Core/Menu/MenuLinkTreeElement.php
@@ -78,6 +78,8 @@ class MenuLinkTreeElement {
* This is merged (\Drupal\Component\Utility\NestedArray::mergeDeep()) with
* \Drupal\Core\Menu\MenuLinkInterface::getOptions(), to allow menu link tree
* manipulators to add or override link options.
+ *
+ * @var string[]
*/
public $options = [];
diff --git a/core/modules/help/tests/src/Functional/HelpTest.php b/core/modules/help/tests/src/Functional/HelpTest.php
index 03b661c5cf7..7ba9a681dc5 100644
--- a/core/modules/help/tests/src/Functional/HelpTest.php
+++ b/core/modules/help/tests/src/Functional/HelpTest.php
@@ -40,11 +40,15 @@ class HelpTest extends BrowserTestBase {
/**
* The admin user that will be created.
+ *
+ * @var \Drupal\user\Entity\User|false
*/
protected $adminUser;
/**
* The anonymous user that will be created.
+ *
+ * @var \Drupal\user\Entity\User|false
*/
protected $anyUser;
diff --git a/core/modules/help/tests/src/Functional/NoHelpTest.php b/core/modules/help/tests/src/Functional/NoHelpTest.php
index 3fbfa96500d..88f1c60fabe 100644
--- a/core/modules/help/tests/src/Functional/NoHelpTest.php
+++ b/core/modules/help/tests/src/Functional/NoHelpTest.php
@@ -29,6 +29,8 @@ class NoHelpTest extends BrowserTestBase {
/**
* The user who will be created.
+ *
+ * @var \Drupal\user\Entity\User|false
*/
protected $adminUser;
diff --git a/core/modules/locale/tests/src/Functional/LocaleExportTest.php b/core/modules/locale/tests/src/Functional/LocaleExportTest.php
index c467474ae87..a66b33ba1f8 100644
--- a/core/modules/locale/tests/src/Functional/LocaleExportTest.php
+++ b/core/modules/locale/tests/src/Functional/LocaleExportTest.php
@@ -28,6 +28,8 @@ class LocaleExportTest extends BrowserTestBase {
/**
* A user able to create languages and export translations.
+ *
+ * @var \Drupal\user\Entity\User|false
*/
protected $adminUser = NULL;
diff --git a/core/modules/migrate/tests/src/Functional/MigrateMessageTestBase.php b/core/modules/migrate/tests/src/Functional/MigrateMessageTestBase.php
index e41ecf722ac..6885ba378e9 100644
--- a/core/modules/migrate/tests/src/Functional/MigrateMessageTestBase.php
+++ b/core/modules/migrate/tests/src/Functional/MigrateMessageTestBase.php
@@ -39,6 +39,8 @@ class MigrateMessageTestBase extends BrowserTestBase {
/**
* Migration IDs.
+ *
+ * @var string[]
*/
protected $migrationIds = ['custom_test'];
diff --git a/core/modules/migrate_drupal/tests/src/Unit/source/DrupalSqlBaseTest.php b/core/modules/migrate_drupal/tests/src/Unit/source/DrupalSqlBaseTest.php
index cdd0b7a0230..7415ed3b601 100644
--- a/core/modules/migrate_drupal/tests/src/Unit/source/DrupalSqlBaseTest.php
+++ b/core/modules/migrate_drupal/tests/src/Unit/source/DrupalSqlBaseTest.php
@@ -17,6 +17,8 @@ class DrupalSqlBaseTest extends MigrateTestCase {
/**
* Define bare minimum migration configuration.
+ *
+ * @var string[]
*/
protected $migrationConfiguration = [
'id' => 'DrupalSqlBase',
@@ -50,6 +52,8 @@ class DrupalSqlBaseTest extends MigrateTestCase {
/**
* Minimum database contents needed to test DrupalSqlBase.
+ *
+ * @var string[]
*/
protected $databaseContents = [
'system' => [
diff --git a/core/modules/migrate_drupal/tests/src/Unit/source/d6/Drupal6SqlBaseTest.php b/core/modules/migrate_drupal/tests/src/Unit/source/d6/Drupal6SqlBaseTest.php
index 90b7574236b..c2d15033102 100644
--- a/core/modules/migrate_drupal/tests/src/Unit/source/d6/Drupal6SqlBaseTest.php
+++ b/core/modules/migrate_drupal/tests/src/Unit/source/d6/Drupal6SqlBaseTest.php
@@ -17,6 +17,8 @@ class Drupal6SqlBaseTest extends MigrateTestCase {
/**
* Define bare minimum migration configuration.
+ *
+ * @var string[]
*/
protected $migrationConfiguration = [
'id' => 'Drupal6SqlBase',
@@ -29,6 +31,8 @@ class Drupal6SqlBaseTest extends MigrateTestCase {
/**
* Minimum database contents needed to test Drupal6SqlBase.
+ *
+ * @var string[]
*/
protected $databaseContents = [
'system' => [
diff --git a/core/modules/node/tests/src/Functional/NodeAccessBaseTableTest.php b/core/modules/node/tests/src/Functional/NodeAccessBaseTableTest.php
index ee190acfe91..a677bd29f31 100644
--- a/core/modules/node/tests/src/Functional/NodeAccessBaseTableTest.php
+++ b/core/modules/node/tests/src/Functional/NodeAccessBaseTableTest.php
@@ -57,6 +57,8 @@ class NodeAccessBaseTableTest extends NodeTestBase {
/**
* A web user.
+ *
+ * @var \Drupal\user\Entity\User|false
*/
protected $webUser;
diff --git a/core/modules/node/tests/src/Functional/NodeAccessGrantsCacheContextTest.php b/core/modules/node/tests/src/Functional/NodeAccessGrantsCacheContextTest.php
index 61c7c77b75a..27385e9666b 100644
--- a/core/modules/node/tests/src/Functional/NodeAccessGrantsCacheContextTest.php
+++ b/core/modules/node/tests/src/Functional/NodeAccessGrantsCacheContextTest.php
@@ -27,11 +27,15 @@ class NodeAccessGrantsCacheContextTest extends NodeTestBase {
/**
* User with permission to view content.
+ *
+ * @var \Drupal\user\Entity\User|false
*/
protected $accessUser;
/**
* User without permission to view content.
+ *
+ * @var \Drupal\user\Entity\User|false
*/
protected $noAccessUser;
@@ -44,6 +48,10 @@ class NodeAccessGrantsCacheContextTest extends NodeTestBase {
/**
* User with permission to bypass node access.
+ *
+ * @var \Drupal\user\Entity\User|false
+ *
+ * @see \Drupal\Tests\user\Traits\UserCreationTrait::createUser
*/
protected $adminUser;
diff --git a/core/modules/node/tests/src/Functional/NodeEntityViewModeAlterTest.php b/core/modules/node/tests/src/Functional/NodeEntityViewModeAlterTest.php
index ec7473488c9..ad525c6e6bd 100644
--- a/core/modules/node/tests/src/Functional/NodeEntityViewModeAlterTest.php
+++ b/core/modules/node/tests/src/Functional/NodeEntityViewModeAlterTest.php
@@ -18,6 +18,8 @@ class NodeEntityViewModeAlterTest extends NodeTestBase {
/**
* Enable dummy module that implements hook_ENTITY_TYPE_view() for nodes.
+ *
+ * @var string[]
*/
protected static $modules = ['node_test'];
diff --git a/core/modules/node/tests/src/Functional/NodeQueryAlterTest.php b/core/modules/node/tests/src/Functional/NodeQueryAlterTest.php
index 9abd5855009..a04c44180d3 100644
--- a/core/modules/node/tests/src/Functional/NodeQueryAlterTest.php
+++ b/core/modules/node/tests/src/Functional/NodeQueryAlterTest.php
@@ -26,11 +26,15 @@ class NodeQueryAlterTest extends NodeTestBase {
/**
* User with permission to view content.
+ *
+ * @var \Drupal\user\Entity\User|false
*/
protected $accessUser;
/**
* User without permission to view content.
+ *
+ * @var \Drupal\user\Entity\User|false
*/
protected $noAccessUser;
diff --git a/core/modules/pgsql/src/Driver/Database/pgsql/Connection.php b/core/modules/pgsql/src/Driver/Database/pgsql/Connection.php
index e9c67c3b915..bf38643e6da 100644
--- a/core/modules/pgsql/src/Driver/Database/pgsql/Connection.php
+++ b/core/modules/pgsql/src/Driver/Database/pgsql/Connection.php
@@ -52,6 +52,8 @@ class Connection extends DatabaseConnection implements SupportsTemporaryTablesIn
*
* In PostgreSQL, 'LIKE' is case-sensitive. ILIKE should be used for
* case-insensitive statements.
+ *
+ * @var string[][]
*/
protected static $postgresqlConditionOperatorMap = [
'LIKE' => ['operator' => 'ILIKE'],
diff --git a/core/modules/responsive_image/tests/src/Functional/ViewsIntegrationTest.php b/core/modules/responsive_image/tests/src/Functional/ViewsIntegrationTest.php
index 0fc468107c7..3ceabe1a387 100644
--- a/core/modules/responsive_image/tests/src/Functional/ViewsIntegrationTest.php
+++ b/core/modules/responsive_image/tests/src/Functional/ViewsIntegrationTest.php
@@ -43,6 +43,8 @@ class ViewsIntegrationTest extends ViewTestBase {
/**
* The test views to enable.
+ *
+ * @var string[]
*/
public static $testViews = ['entity_test_row'];
diff --git a/core/modules/rest/tests/src/Functional/Views/StyleSerializerEntityTest.php b/core/modules/rest/tests/src/Functional/Views/StyleSerializerEntityTest.php
index 05f477d3022..e0c5f40256a 100644
--- a/core/modules/rest/tests/src/Functional/Views/StyleSerializerEntityTest.php
+++ b/core/modules/rest/tests/src/Functional/Views/StyleSerializerEntityTest.php
@@ -57,6 +57,10 @@ class StyleSerializerEntityTest extends ViewTestBase {
/**
* A user with administrative privileges to look at test entity and configure views.
+ *
+ * @var \Drupal\user\Entity\User|false
+ *
+ * @see \Drupal\Tests\user\Traits\UserCreationTrait::createUser
*/
protected $adminUser;
diff --git a/core/modules/rest/tests/src/Functional/Views/StyleSerializerTest.php b/core/modules/rest/tests/src/Functional/Views/StyleSerializerTest.php
index 8a5b3b75ec3..ff15da36125 100644
--- a/core/modules/rest/tests/src/Functional/Views/StyleSerializerTest.php
+++ b/core/modules/rest/tests/src/Functional/Views/StyleSerializerTest.php
@@ -54,6 +54,8 @@ class StyleSerializerTest extends ViewTestBase {
/**
* A user with administrative privileges to look at test entity and configure views.
+ *
+ * @var \Drupal\user\Entity\User|false
*/
protected $adminUser;
diff --git a/core/modules/sqlite/src/Driver/Database/sqlite/Connection.php b/core/modules/sqlite/src/Driver/Database/sqlite/Connection.php
index cbd49e0e4d8..8e6d06b6fe2 100644
--- a/core/modules/sqlite/src/Driver/Database/sqlite/Connection.php
+++ b/core/modules/sqlite/src/Driver/Database/sqlite/Connection.php
@@ -28,6 +28,8 @@ class Connection extends DatabaseConnection implements SupportsTemporaryTablesIn
* A map of condition operators to SQLite operators.
*
* We don't want to override any of the defaults.
+ *
+ * @var string[][]
*/
protected static $sqliteConditionOperatorMap = [
'LIKE' => ['postfix' => " ESCAPE '\\'"],
diff --git a/core/modules/system/tests/src/Functional/Datetime/DrupalDateTimeTest.php b/core/modules/system/tests/src/Functional/Datetime/DrupalDateTimeTest.php
index 52d57eacee6..4b38d0277d1 100644
--- a/core/modules/system/tests/src/Functional/Datetime/DrupalDateTimeTest.php
+++ b/core/modules/system/tests/src/Functional/Datetime/DrupalDateTimeTest.php
@@ -17,6 +17,8 @@ class DrupalDateTimeTest extends BrowserTestBase {
/**
* Set up required modules.
+ *
+ * @var string[]
*/
protected static $modules = [];
diff --git a/core/modules/user/src/Plugin/views/wizard/Users.php b/core/modules/user/src/Plugin/views/wizard/Users.php
index af8e3d178b9..963f5c16b59 100644
--- a/core/modules/user/src/Plugin/views/wizard/Users.php
+++ b/core/modules/user/src/Plugin/views/wizard/Users.php
@@ -29,6 +29,8 @@ class Users extends WizardPluginBase {
/**
* Set default values for the filters.
+ *
+ * @var string[]
*/
protected $filters = [
'status' => [
diff --git a/core/modules/views/src/Plugin/views/cache/CachePluginBase.php b/core/modules/views/src/Plugin/views/cache/CachePluginBase.php
index c63dab1e953..c10ba31bf76 100644
--- a/core/modules/views/src/Plugin/views/cache/CachePluginBase.php
+++ b/core/modules/views/src/Plugin/views/cache/CachePluginBase.php
@@ -30,6 +30,8 @@ abstract class CachePluginBase extends PluginBase {
/**
* Contains all data that should be written/read from cache.
+ *
+ * @var array
*/
public $storage = [];
diff --git a/core/modules/views/src/Plugin/views/filter/FilterPluginBase.php b/core/modules/views/src/Plugin/views/filter/FilterPluginBase.php
index 1a844105ca8..f817f88fb13 100644
--- a/core/modules/views/src/Plugin/views/filter/FilterPluginBase.php
+++ b/core/modules/views/src/Plugin/views/filter/FilterPluginBase.php
@@ -68,6 +68,8 @@ abstract class FilterPluginBase extends HandlerBase implements CacheableDependen
*
* Contains the actual value of the field,either configured in the views ui
* or entered in the exposed filters.
+ *
+ * @var mixed
*/
public $value = NULL;
@@ -80,26 +82,31 @@ abstract class FilterPluginBase extends HandlerBase implements CacheableDependen
/**
* Contains the information of the selected item in a grouped filter.
+ *
+ * @var array
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public $group_info = NULL;
/**
- * @var bool
* Disable the possibility to force a single value.
+ *
+ * @var bool
*/
protected $alwaysMultiple = FALSE;
/**
- * @var bool
* Disable the possibility to use operators.
+ *
+ * @var bool
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public $no_operator = FALSE;
/**
- * @var bool
* Disable the possibility to allow an exposed input to be optional.
+ *
+ * @var bool
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public $always_required = FALSE;
diff --git a/core/modules/views/src/Plugin/views/query/MysqlDateSql.php b/core/modules/views/src/Plugin/views/query/MysqlDateSql.php
index 07ea4c4a38a..53e1289e4cc 100644
--- a/core/modules/views/src/Plugin/views/query/MysqlDateSql.php
+++ b/core/modules/views/src/Plugin/views/query/MysqlDateSql.php
@@ -23,6 +23,8 @@ class MysqlDateSql implements DateSqlInterface {
/**
* An array of PHP-to-MySQL replacement patterns.
+ *
+ * @var string[]
*/
protected static $replace = [
'Y' => '%Y',
diff --git a/core/modules/views/src/Plugin/views/query/Sql.php b/core/modules/views/src/Plugin/views/query/Sql.php
index 82ac19dd24e..7e5d216b148 100644
--- a/core/modules/views/src/Plugin/views/query/Sql.php
+++ b/core/modules/views/src/Plugin/views/query/Sql.php
@@ -33,11 +33,15 @@ class Sql extends QueryPluginBase {
/**
* A list of tables in the order they should be added, keyed by alias.
+ *
+ * @var array
*/
protected $tableQueue = [];
/**
* Holds an array of tables and counts added so that we can create aliases.
+ *
+ * @var array
*/
public $tables = [];
@@ -46,6 +50,8 @@ class Sql extends QueryPluginBase {
*
* These are aliases of the primary table that represent different ways to
* join the same table in.
+ *
+ * @var array
*/
public $relationships = [];
@@ -54,6 +60,8 @@ class Sql extends QueryPluginBase {
*
* Each section is in itself an array of pieces and a flag as to whether or
* not it should be AND or OR.
+ *
+ * @var array
*/
public $where = [];
@@ -62,22 +70,30 @@ class Sql extends QueryPluginBase {
*
* Each section is in itself an array of pieces and a flag as to whether or
* not it should be AND or OR.
+ *
+ * @var array
*/
public $having = [];
/**
* A simple array of order by clauses.
+ *
+ * @var array
*/
public $orderby = [];
/**
* A simple array of group by clauses.
+ *
+ * @var array
*/
public $groupby = [];
/**
* An array of fields.
+ *
+ * @var array
*/
public $fields = [];
@@ -95,16 +111,22 @@ class Sql extends QueryPluginBase {
/**
* Should this query be optimized for counts, for example no sorts.
+ *
+ * @var bool|null
*/
protected $getCountOptimized = NULL;
/**
* An array mapping table aliases and field names to field aliases.
+ *
+ * @var array
*/
protected $fieldAliases = [];
/**
* Query tags which will be passed over to the dbtng query object.
+ *
+ * @var array
*/
public $tags = [];
diff --git a/core/modules/views/src/Plugin/views/style/StylePluginBase.php b/core/modules/views/src/Plugin/views/style/StylePluginBase.php
index 8acb4e87f43..d73136e7811 100644
--- a/core/modules/views/src/Plugin/views/style/StylePluginBase.php
+++ b/core/modules/views/src/Plugin/views/style/StylePluginBase.php
@@ -46,6 +46,8 @@ abstract class StylePluginBase extends PluginBase {
/**
* Store all available tokens row rows.
+ *
+ * @var array
*/
protected $rowTokens = [];
diff --git a/core/tests/Drupal/FunctionalTests/Installer/InstallerConfigDirectoryTestBase.php b/core/tests/Drupal/FunctionalTests/Installer/InstallerConfigDirectoryTestBase.php
index 0b2d9dcee1e..dfd526fd434 100644
--- a/core/tests/Drupal/FunctionalTests/Installer/InstallerConfigDirectoryTestBase.php
+++ b/core/tests/Drupal/FunctionalTests/Installer/InstallerConfigDirectoryTestBase.php
@@ -17,11 +17,13 @@ abstract class InstallerConfigDirectoryTestBase extends InstallerTestBase {
* This is set by the profile in the core.extension extracted.
*
* If set to FALSE, then the install will proceed without an install profile.
+ *
+ * @var string|null|bool
*/
protected $profile = NULL;
/**
- * @todo Fill out docblock.
+ * @var bool
*/
protected $existingSyncDirectory = FALSE;
diff --git a/core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBase.php b/core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBase.php
index a12c5853b89..59ab933a0ea 100644
--- a/core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBase.php
+++ b/core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBase.php
@@ -50,6 +50,8 @@ abstract class UpdatePathTestBase extends BrowserTestBase {
/**
* Modules to install after the database is loaded.
+ *
+ * @var string[]
*/
protected static $modules = [];
diff --git a/core/tests/Drupal/Tests/Core/Asset/AssetResolverTest.php b/core/tests/Drupal/Tests/Core/Asset/AssetResolverTest.php
index 5a3915f0b61..faf3dcd3c8b 100644
--- a/core/tests/Drupal/Tests/Core/Asset/AssetResolverTest.php
+++ b/core/tests/Drupal/Tests/Core/Asset/AssetResolverTest.php
@@ -86,7 +86,7 @@ class AssetResolverTest extends UnitTestCase {
/**
* An array of library definitions.
*/
- protected $libraries = [];
+ protected array $libraries = [];
/**
* {@inheritdoc}