Skip to content

Commit

Permalink
Add missing properties to classes
Browse files Browse the repository at this point in the history
Fixing issues on PHP 8.2 like
> Deprecated: Creation of dynamic property {x} is deprecated

Signed-off-by: Elan Ruusamäe <glen@pld-linux.org>
Co-authored-by: Elan Ruusamäe <glen@pld-linux.org>
  • Loading branch information
hungtrinh and glensc committed Nov 15, 2022
1 parent ed7aed6 commit 65c1385
Show file tree
Hide file tree
Showing 10 changed files with 58 additions and 0 deletions.
5 changes: 5 additions & 0 deletions library/Zend/Feed/Writer/Feed/FeedAbstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@
*/
class Zend_Feed_Writer_Feed_FeedAbstract
{
/**
* @var array
*/
protected $_extensions = [];

/**
* Contains all Feed level date to append in feed output
*
Expand Down
20 changes: 20 additions & 0 deletions library/Zend/Form/Decorator/Label.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,26 @@
*/
class Zend_Form_Decorator_Label extends Zend_Form_Decorator_Abstract
{
/**
* @var string
*/
protected $optionalPrefix;

/**
* @var string
*/
protected $optionalSuffix;

/**
* @var string
*/
protected $requiredPrefix;

/**
* @var string
*/
protected $requiredSuffix;

/**
* Placement constants
*/
Expand Down
5 changes: 5 additions & 0 deletions library/Zend/Reflection/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@
*/
class Zend_Reflection_File implements Reflector
{
/**
* @var string
*/
protected $_fileName = null;

/**
* @var string
*/
Expand Down
10 changes: 10 additions & 0 deletions library/Zend/Server/Reflection/Prototype.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,16 @@
*/
class Zend_Server_Reflection_Prototype
{
/**
* @var array | null
*/
protected $_params;

/**
* @var Zend_Server_Reflection_ReturnValue
*/
protected $_return;

/**
* Constructor
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@
*/
class Zend_Tool_Project_Context_Zf_ApplicationConfigFile extends Zend_Tool_Project_Context_Filesystem_File
{
/**
* @var string | null
*/
protected $_type;

/**
* @var string
Expand Down
4 changes: 4 additions & 0 deletions library/Zend/Tool/Project/Profile.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@
*/
class Zend_Tool_Project_Profile extends Zend_Tool_Project_Profile_Resource_Container
{
/**
* @var Zend_Tool_Project_Profile_Resource_Container
*/
protected $_topResources;

/**
* @var bool
Expand Down
5 changes: 5 additions & 0 deletions library/Zend/Translate/Adapter/Csv.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ class Zend_Translate_Adapter_Csv extends Zend_Translate_Adapter
{
private $_data = [];

/**
* @var resource
*/
private $_file;

/**
* Generates the adapter
*
Expand Down
1 change: 1 addition & 0 deletions library/Zend/Validate/Abstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
*/
abstract class Zend_Validate_Abstract implements Zend_Validate_Interface
{
public $zfBreakChainOnFailure;
/**
* The value to be validated
*
Expand Down
4 changes: 4 additions & 0 deletions library/Zend/View/Helper/PartialLoop.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@
*/
class Zend_View_Helper_PartialLoop extends Zend_View_Helper_Partial
{
/**
* @var integer
*/
protected $partialTotalCount = 0;

/**
* Marker to where the pointer is at in the loop
Expand Down
Binary file modified tests/Zend/Paginator/_files/test.sqlite
Binary file not shown.

0 comments on commit 65c1385

Please sign in to comment.