Issue #2937882 by Spokje, RoSk0, longwave, quietone: Fix 'Drupal.Classes.PropertyDeclaration' coding standard

merge-requests/600/head
catch 2021-04-26 21:24:04 +01:00
parent fd565007ee
commit e7fadb0559
4 changed files with 6 additions and 0 deletions

View File

@ -91,6 +91,7 @@ abstract class ConfigEntityBase extends EntityBase implements ConfigEntityInterf
*
* @var array
*/
// phpcs:ignore Drupal.Classes.PropertyDeclaration
protected $_core = [];
/**

View File

@ -15,6 +15,7 @@ trait DependencySerializationTrait {
*
* @var array
*/
// phpcs:ignore Drupal.Classes.PropertyDeclaration
protected $_serviceIds = [];
/**
@ -22,6 +23,7 @@ trait DependencySerializationTrait {
*
* @var array
*/
// phpcs:ignore Drupal.Classes.PropertyDeclaration
protected $_entityStorages = [];
/**

View File

@ -12,6 +12,7 @@ class ResultRow {
*
* @var \Drupal\Core\Entity\EntityInterface
*/
// phpcs:ignore Drupal.Classes.PropertyDeclaration
public $_entity = NULL;
/**
@ -19,6 +20,7 @@ class ResultRow {
*
* @var \Drupal\Core\Entity\EntityInterface[]
*/
// phpcs:ignore Drupal.Classes.PropertyDeclaration
public $_relationship_entities = [];
/**

View File

@ -35,6 +35,7 @@
<rule ref="Drupal.Classes.ClassFileName"/>
<rule ref="Drupal.Classes.FullyQualifiedNamespace"/>
<rule ref="Drupal.Classes.InterfaceName"/>
<rule ref="Drupal.Classes.PropertyDeclaration"/>
<rule ref="Drupal.Classes.UnusedUseStatement"/>
<rule ref="Drupal.Classes.UseGlobalClass"/>
<rule ref="Drupal.Classes.UseLeadingBackslash"/>