Skip to content

Commit

Permalink
Merge pull request #228 from quantcdn/feature/php82-deprecation2
Browse files Browse the repository at this point in the history
Fixed rest of php 8.2 dynamic property deprecations.
  • Loading branch information
kepol authored Feb 29, 2024
2 parents 445fe2f + 5a1164a commit 7d7c95c
Show file tree
Hide file tree
Showing 5 changed files with 39 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 @@ -23,6 +23,7 @@ class CollectionSubscriber implements EventSubscriberInterface {
* The entity type manager.
*
* @var Drupal\Core\Entity\EntityTypeManager
* @todo Remove this?
*/
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
11 changes: 9 additions & 2 deletions src/Plugin/QueueItem/NodeItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +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.
*
* @var bool
* @todo Remove this?
*/
private $revisions;

Expand Down

0 comments on commit 7d7c95c

Please sign in to comment.