Commit 7d084eaa authored by catch's avatar catch
Browse files

task: #3639248 Remove deprecated class properties

By: dcam
By: godotislate
By: xjm
(cherry picked from commit 55705527)
parent cac5dc3d
Loading
Loading
Loading
Loading
Loading
−12
Changes for core/.phpstan-baseline.php: 0 added lines, 12 removed lines.
Original line number Diff line number Diff line
@@ -45488,12 +45488,6 @@
	'count' => 1,
	'path' => __DIR__ . '/modules/user/src/Plugin/rest/resource/UserRegistrationResource.php',
];
$ignoreErrors[] = [
	'message' => '#^Drupal\\\\Core\\\\DependencyInjection\\\\DependencySerializationTrait does not support private properties\\.$#',
	'identifier' => 'dependencySerializationTraitProperty.unsupportedPrivateProperty',
	'count' => 1,
	'path' => __DIR__ . '/modules/user/src/Plugin/views/access/Permission.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\user\\\\Plugin\\\\views\\\\access\\\\Permission\\:\\:alterRouteDefinition\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
@@ -45746,12 +45740,6 @@
	'count' => 1,
	'path' => __DIR__ . '/modules/user/src/Plugin/views/filter/Name.php',
];
$ignoreErrors[] = [
	'message' => '#^Drupal\\\\Core\\\\DependencyInjection\\\\DependencySerializationTrait does not support private properties\\.$#',
	'identifier' => 'dependencySerializationTraitProperty.unsupportedPrivateProperty',
	'count' => 1,
	'path' => __DIR__ . '/modules/user/src/Plugin/views/filter/Permissions.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\user\\\\Plugin\\\\views\\\\filter\\\\Permissions\\:\\:query\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
−12
Changes for core/lib/Drupal/Core/Routing/RouteBuilder.php: 0 added lines, 12 removed lines.
Original line number Diff line number Diff line
@@ -3,7 +3,6 @@
namespace Drupal\Core\Routing;

use Drupal\Core\Access\CheckProviderInterface;
use Drupal\Core\DependencyInjection\DeprecatedServicePropertyTrait;
use Drupal\Core\Lock\LockBackendInterface;
use Drupal\Core\DestructableInterface;
use Drupal\Component\EventDispatcher\Event;
@@ -14,7 +13,6 @@
 * Managing class for rebuilding the router table.
 */
class RouteBuilder implements RouteBuilderInterface, DestructableInterface {
  use DeprecatedServicePropertyTrait;

  /**
   * The dumper to which we should send collected routes.
@@ -65,16 +63,6 @@ class RouteBuilder implements RouteBuilderInterface, DestructableInterface {
   */
  protected $checkProvider;

  /**
   * Deprecated service properties.
   *
   * @var string[]
   */
  protected array $deprecatedProperties = [
    'controllerResolver' => 'controller_resolver',
    'moduleHandler' => 'module_handler',
  ];

  /**
   * Constructs the RouteBuilder using the passed MatcherDumperInterface.
   */
−7
Changes for core/lib/Drupal/Core/Routing/Router.php: 0 added lines, 7 removed lines.
Original line number Diff line number Diff line
@@ -4,7 +4,6 @@

use Drupal\Core\Cache\CacheableMetadata;
use Drupal\Core\Path\CurrentPathStack;
use Drupal\Core\DependencyInjection\DeprecatedServicePropertyTrait;
use Drupal\Core\Routing\Exception\CacheableResourceNotFoundException;
use Symfony\Component\HttpFoundation\Exception\BadRequestException;
use Symfony\Component\HttpFoundation\Request;
@@ -32,12 +31,6 @@
 *    See ::applyRouteEnhancers().
 */
class Router extends UrlMatcher implements RequestMatcherInterface, RouterInterface {
  use DeprecatedServicePropertyTrait;

  /**
   * The service properties that should raise a deprecation error.
   */
  private array $deprecatedProperties = ['urlGenerator' => 'url_generator'];

  /**
   * The list of available enhancers.
−8
Changes for core/lib/Drupal/Core/Theme/ComponentNegotiator.php: 0 added lines, 8 removed lines.
Original line number Diff line number Diff line
@@ -2,7 +2,6 @@

namespace Drupal\Core\Theme;

use Drupal\Core\DependencyInjection\DeprecatedServicePropertyTrait;
use Drupal\Core\Extension\Extension;

/**
@@ -10,13 +9,6 @@
 */
class ComponentNegotiator {

  use DeprecatedServicePropertyTrait;

  /**
   * {@inheritdoc}
   */
  protected $deprecatedProperties = ['moduleExtensionList' => 'extension.list.module'];

  /**
   * Holds the component IDs from previous negotiations.
   *
−7
Changes for core/modules/user/src/Plugin/views/access/Permission.php: 0 added lines, 7 removed lines.
Original line number Diff line number Diff line
@@ -4,7 +4,6 @@

use Drupal\Core\Cache\Cache;
use Drupal\Core\Cache\CacheableDependencyInterface;
use Drupal\Core\DependencyInjection\DeprecatedServicePropertyTrait;
use Drupal\Core\Extension\ModuleExtensionList;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Session\AccountInterface;
@@ -26,12 +25,6 @@
  help: new TranslatableMarkup('Access will be granted to users with the specified permission string.'),
)]
class Permission extends AccessPluginBase implements CacheableDependencyInterface {
  use DeprecatedServicePropertyTrait;

  /**
   * The service properties that should raise a deprecation error.
   */
  private array $deprecatedProperties = ['moduleHandler' => 'module_handler'];

  /**
   * {@inheritdoc}
Loading