Skip to content

Commit 5dea7b8

Browse files
committed
pkp#8845 Added missing property declarations
1 parent 10252d7 commit 5dea7b8

File tree

19 files changed

+50
-3
lines changed

19 files changed

+50
-3
lines changed

api/v1/stats/editorial/PKPStatsEditorialHandler.php

+3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727

2828
abstract class PKPStatsEditorialHandler extends APIHandler
2929
{
30+
/** @var string The name of the section ids query param for this application */
31+
public $sectionIdsQueryParam;
32+
3033
/**
3134
* Constructor
3235
*/

api/v1/stats/publications/PKPStatsPublicationHandler.php

+3
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@
3535

3636
abstract class PKPStatsPublicationHandler extends APIHandler
3737
{
38+
/** @var string The name of the section ids query param for this application */
39+
public $sectionIdsQueryParam;
40+
3841
/**
3942
* Constructor
4043
*/

classes/components/forms/FieldAutosuggestPreset.php

+3
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ class FieldAutosuggestPreset extends FieldBaseAutosuggest
2222
/** @var array Key/value list of suggestions for this field */
2323
public $options = [];
2424

25+
/** @var array Key/value list of languages this field should support. Key = locale code. Value = locale name */
26+
public $locales = [];
27+
2528
/**
2629
* @copydoc Field::getConfig()
2730
*/

classes/controllers/grid/users/reviewer/PKPReviewerGridHandler.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ class PKPReviewerGridHandler extends GridHandler
7878
/** @var bool Is the current user assigned as an author to this submission */
7979
public $_isCurrentUserAssignedAuthor;
8080

81+
public bool $isAuthorGrid = false;
82+
8183

8284
/**
8385
* Constructor
@@ -104,8 +106,6 @@ public function __construct()
104106
[Role::ROLE_ID_ASSISTANT],
105107
$assistantOperations
106108
);
107-
108-
$this->isAuthorGrid = false;
109109
}
110110

111111
/**

classes/core/EntityDAO.php

+3
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ abstract class EntityDAO
3131
/** @var string The column name for the object id in primary and settings tables */
3232
public $primaryKeyColumn;
3333

34+
/** @var array Maps schema properties for the primary table to their column names */
35+
public $primaryTableColumns = [];
36+
3437
/**
3538
* @var array Map schema properties to the primary table
3639
*

classes/form/validation/FormValidatorCustom.php

+3
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ class FormValidatorCustom extends FormValidator
2626
/** @var bool If true, field is considered valid if user function returns false instead of true */
2727
public $_complementReturn;
2828

29+
/** @var mixed[] Arguments to pass to getMessage() */
30+
public $_messageArgs = [];
31+
2932
/** @var array If present, additional arguments to pass to the getMessage translation function
3033
* The user function is passed the form data as its first argument and $additionalArguments, if set, as the remaining arguments. This function must return a boolean value.
3134
*

classes/linkAction/request/Modal.php

+3
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ class Modal extends LinkActionRequest
3535
/** @var array The id of any Vue instances that must be destroyed when modal closed */
3636
public $_closeCleanVueInstances;
3737

38+
/** @var string Text for the close button */
39+
public $_closeButtonText;
40+
3841
/**
3942
* Constructor
4043
*

classes/metadata/MetadataDataObjectAdapter.php

+3
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ class MetadataDataObjectAdapter extends PersistableFilter
5252
/** @var string */
5353
public $_dataObjectName;
5454

55+
/** @var DataObject */
56+
public $_targetDataObject;
57+
5558
/**
5659
* Constructor
5760
*

classes/migration/upgrade/v3_4_0/I7191_EditorAssignments.php

+4
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121

2222
abstract class I7191_EditorAssignments extends \PKP\migration\Migration
2323
{
24+
protected string $sectionDb;
25+
protected string $sectionIdColumn;
26+
protected string $contextColumn;
27+
2428
/**
2529
* Adds a user_group_id column to the subeditor_submission_group
2630
* table and adds initial data. Adds foreign keys where appropriate.

classes/payment/Payment.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class Payment
4343
public $assocId;
4444

4545
/** @var int PaymentManager::PAYMENT_TYPE_... */
46-
public $_type;
46+
public $type;
4747

4848
/**
4949
* Constructor

classes/services/queryBuilders/PKPContextQueryBuilder.php

+3
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ abstract class PKPContextQueryBuilder implements EntityQueryBuilderInterface
4040
/** @var string search phrase */
4141
protected $searchPhrase = null;
4242

43+
/** @var string[] Selected columns */
44+
protected $columns = [];
45+
4346
/**
4447
* Set isEnabled filter
4548
*

classes/sushi/CounterR5Report.php

+3
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ abstract class CounterR5Report
7979
/** The granularity of the usage data to include in the report. */
8080
protected string $granularity = 'Month';
8181

82+
/** @var array */
83+
protected $institutionId;
84+
8285
/**
8386
* Get report name defined by COUNTER.
8487
*/

classes/xml/XMLParserDOMHandler.php

+3
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ class XMLParserDOMHandler extends XMLParserHandler {
3131
/** @var string reference to the current data */
3232
var $currentData;
3333

34+
/** @var XMLNode[] */
35+
var $rootNodes = [];
36+
3437
/**
3538
* Constructor.
3639
*/

controllers/grid/eventLog/SubmissionFileEventLogGridHandler.php

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323

2424
class SubmissionFileEventLogGridHandler extends SubmissionEventLogGridHandler
2525
{
26+
/** @var SubmissionFile SubmissionFile */
27+
public $_submissionFile;
28+
2629
//
2730
// Getters/Setters
2831
//

controllers/grid/files/FileDateGridColumn.php

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323

2424
class FileDateGridColumn extends GridColumn
2525
{
26+
/** @var ?int */
27+
public $_stageId;
28+
2629
/** @var bool */
2730
public $_includeNotes;
2831

controllers/grid/files/proof/form/ManageProofFilesForm.php

+3
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222

2323
class ManageProofFilesForm extends ManageSubmissionFilesForm
2424
{
25+
/** @var int PublicationId ID. */
26+
public $_publicationId;
27+
2528
/** @var int Representation ID. */
2629
public $_representationId;
2730

controllers/grid/queries/QueriesGridRow.php

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ class QueriesGridRow extends GridRow
2929
public $_stageId;
3030

3131
/** @var QueriesAccessHelper */
32+
public $_queriesAccessHelper;
3233

3334
/**
3435
* Constructor

tests/classes/publication/PublicationTest.php

+2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828

2929
class PublicationTest extends PKPTestCase
3030
{
31+
public $publication;
32+
3133
/**
3234
* @see PKPTestCase::setUp()
3335
*/

tests/classes/security/authorization/PolicyTestCase.php

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ abstract class PolicyTestCase extends PKPTestCase
3535
protected const ROLE_ID_TEST = 0x9999;
3636

3737
private ?Context $contextObject = null;
38+
public $contextObjects;
3839

3940
/** @var AuthorizationPolicy internal state variable that contains the policy that will be used to manipulate the authorization context */
4041
private ?AuthorizationPolicy $authorizationContextManipulationPolicy = null;

0 commit comments

Comments
 (0)