Skip to content

Commit

Permalink
Fixed rest of php 8.2 dynamic property deprecations.
Browse files Browse the repository at this point in the history
  • Loading branch information
kepol committed Feb 28, 2024
1 parent 445fe2f commit 3a44948
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 3 deletions.
7 changes: 7 additions & 0 deletions modules/quant_search/src/Form/QuantSearchPageForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@
*/
class QuantSearchPageForm extends EntityForm {

/**
* The entity type manager.
*
* @var Drupal\Core\Entity\EntityTypeManagerInterface
*/
protected $entityTypeManager;

/**
* Constructs a QuantSearchPageForm object.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ class CollectionSubscriber implements EventSubscriberInterface {
/**
* The entity type manager.
*
* @todo Remove this?
*
* @var Drupal\Core\Entity\EntityTypeManager
*/
protected $entityTypeManager;
Expand Down
7 changes: 7 additions & 0 deletions src/EventSubscriber/NodeInsertSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@
*/
class NodeInsertSubscriber implements EventSubscriberInterface {

/**
* The metadata manager.
*
* @var Drupal\quant\Plugin\QuantMetadataManager
*/
protected $metadataManager;

/**
* Constructs a node insertion event object.
*
Expand Down
16 changes: 15 additions & 1 deletion src/Plugin/QueueItem/FileItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,26 @@
class FileItem implements QuantQueueItemInterface {

/**
* A filepath.
* The file path.
*
* @var string
*/
private $file;

/**
* The file URL.
*
* @var string
*/
private $url;

/**
* The file full path.
*
* @var string
*/
private $fullPath;

/**
* {@inheritdoc}
*/
Expand Down
12 changes: 10 additions & 2 deletions src/Plugin/QueueItem/NodeItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,31 @@
class NodeItem implements QuantQueueItemInterface {

/**
* A Drupal entity.
* The entity id.
*
* @var int
*/
private $id;

/**
* The revision id.
*
* @var int
*/
private $vid;

/**
* The language code for the entity.
*
* @var array
*/
private $filter;


/**
* Include entity revisions.
*
* @todo Remove this?
*
* @var bool
*/
private $revisions;
Expand Down

0 comments on commit 3a44948

Please sign in to comment.