Skip to content

Commit

Permalink
Merge pull request #1521 from tripal/tv4g0-issue1520-php8.2-deprecations
Browse files Browse the repository at this point in the history
Tripal 4 - Fix all the PHP 8.2 deprecations
  • Loading branch information
laceysanderson committed May 23, 2023
2 parents 674fdc0 + 1021e6e commit 54d80cf
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tripal/src/Services/TripalJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ class TripalJob {
*/
protected $job = NULL;

/**
* An instance of the Drupal messenger.
*
* @var object \Drupal\Core\Messenger\Messenger
*/
protected $messenger = NULL;


/**
* The number of items that this importer needs to process. A progress
Expand Down
6 changes: 6 additions & 0 deletions tripal/src/TripalImporter/TripalImporterBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ abstract class TripalImporterBase extends PluginBase implements TripalImporterIn
*/
protected $is_prepared;

/**
* An instance of the Drupal messenger.
*
* @var object \Drupal\Core\Messenger\Messenger
*/
protected $messenger = NULL;

/**
* Stores the last percentage that progress was reported.
Expand Down
7 changes: 7 additions & 0 deletions tripal/src/TripalVocabTerms/TripalCollectionPluginBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,11 @@ public function getName() {
*/
private $name;

/**
* An instance of the TripalLogger.
*
* @var object \Drupal\tripal\Services\TripalLogger
*/
protected $messageLogger = NULL;

}
1 change: 1 addition & 0 deletions tripal/tests/src/Unit/TripalDbx/TripalDbxUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class TripalDbxUnitTest extends UnitTestCase {
protected $proModuleHandler;
protected $moduleHandler;
protected $proTripalDbxDb;
protected $tripalDbxDb;
protected $tripaldbx;

/**
Expand Down
10 changes: 10 additions & 0 deletions tripal_chado/src/Task/ChadoUpgrader.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,16 @@ class ChadoUpgrader extends ChadoTaskBase {
*/
protected $bioTool;

/**
* TripalDbx service object.
*
* This provides in-class access to the non-schema specific Tripal DBX API
* methods.
*
* @var object \Drupal\tripal\TripalDBX\TripalDbx
*/
protected $tripalDbxApi = NULL;

/**
* {@inheritdoc}
*/
Expand Down
7 changes: 7 additions & 0 deletions tripal_chado/src/TripalImporter/ChadoImporterBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ abstract class ChadoImporterBase extends TripalImporterBase {
*/
protected $chado_schema_main;

/**
* An instance of the Drupal messenger.
*
* @var object \Drupal\Core\Messenger\Messenger
*/
protected $messenger = NULL;

/**
* {@inheritdoc}
*/
Expand Down

0 comments on commit 54d80cf

Please sign in to comment.