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 7.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 0485143 commit 0c4602c
Show file tree
Hide file tree
Showing 141 changed files with 1,291 additions and 4 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
26 changes: 26 additions & 0 deletions tests/Zend/Application/ApplicationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,32 @@
*/
class Zend_Application_ApplicationTest extends TestCase
{

/**
* @var array
*/
protected $loaders;

/**
* @var Zend_Loader_Autoloader
*/
protected $autoloader;

/**
* @var Zend_Application
*/
protected $application;

/**
* @var array
*/
protected $iniOptions;

/**
* @var array
*/
protected $includePath;

public static function main()
{
$suite = new TestSuite(__CLASS__);
Expand Down
17 changes: 17 additions & 0 deletions tests/Zend/Application/Bootstrap/BootstrapAbstractTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,23 @@
*/
class Zend_Application_Bootstrap_BootstrapAbstractTest extends TestCase
{
protected $error;

/**
* @var array
*/
protected $loaders;

/**
* @var Zend_Loader_Autoloader
*/
protected $autoloader;

/**
* @var Zend_Application
*/
protected $application;

public static function main()
{
$suite = new TestSuite(__CLASS__);
Expand Down
27 changes: 27 additions & 0 deletions tests/Zend/Application/Module/AutoloaderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,33 @@
*/
class Zend_Application_Module_AutoloaderTest extends TestCase
{
protected $error;

/**
* @var array
*/
protected $loaders;

/**
* @var Zend_Application_Module_Autoloader
*/
protected $loader;

/**
* @var array
*/
protected $includePath;

/**
* @var Zend_Loader_Autoloader
*/
protected $autoloader;

/**
* @var Zend_Application
*/
protected $application;

public static function main()
{
$suite = new TestSuite(__CLASS__);
Expand Down
15 changes: 15 additions & 0 deletions tests/Zend/Application/Module/BootstrapTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,21 @@
*/
class Zend_Application_Module_BootstrapTest extends TestCase
{
/**
* @var array
*/
protected $loaders;

/**
* @var Zend_Loader_Autoloader
*/
protected $autoloader;

/**
* @var Zend_Application
*/
protected $application;

public static function main()
{
$suite = new TestSuite(__CLASS__);
Expand Down
20 changes: 20 additions & 0 deletions tests/Zend/Application/Resource/CacheManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,26 @@
*/
class Zend_Application_Resource_CacheManagerTest extends TestCase
{
/**
* @var array
*/
protected $loaders;

/**
* @var Zend_Loader_Autoloader
*/
protected $autoloader;

/**
* @var Zend_Application
*/
protected $application;

/**
* @var Zend_Application_Bootstrap_Bootstrap
*/
protected $bootstrap;

public static function main()
{
$suite = new TestSuite(__CLASS__);
Expand Down
20 changes: 20 additions & 0 deletions tests/Zend/Application/Resource/DbTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,26 @@
*/
class Zend_Application_Resource_DbTest extends TestCase
{
/**
* @var array
*/
protected $loaders;

/**
* @var Zend_Loader_Autoloader
*/
protected $autoloader;

/**
* @var Zend_Application
*/
protected $application;

/**
* @var Zend_Application_Bootstrap_Bootstrap
*/
protected $bootstrap;

public static function main()
{
$suite = new TestSuite(__CLASS__);
Expand Down
20 changes: 20 additions & 0 deletions tests/Zend/Application/Resource/DojoTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,26 @@
*/
class Zend_Application_Resource_DojoTest extends TestCase
{
/**
* @var array
*/
protected $loaders;

/**
* @var Zend_Loader_Autoloader
*/
protected $autoloader;

/**
* @var Zend_Application
*/
protected $application;

/**
* @var Zend_Application_Bootstrap_Bootstrap
*/
protected $bootstrap;

public static function main()
{
$suite = new TestSuite(__CLASS__);
Expand Down
20 changes: 20 additions & 0 deletions tests/Zend/Application/Resource/FrontcontrollerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,26 @@
*/
class Zend_Application_Resource_FrontcontrollerTest extends TestCase
{
/**
* @var array
*/
protected $loaders;

/**
* @var Zend_Loader_Autoloader
*/
protected $autoloader;

/**
* @var Zend_Application
*/
protected $application;

/**
* @var Zend_Application_Bootstrap_Bootstrap
*/
protected $bootstrap;

public static function main()
{
$suite = new TestSuite(__CLASS__);
Expand Down
20 changes: 20 additions & 0 deletions tests/Zend/Application/Resource/LayoutTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,26 @@
*/
class Zend_Application_Resource_LayoutTest extends TestCase
{
/**
* @var array
*/
protected $loaders;

/**
* @var Zend_Loader_Autoloader
*/
protected $autoloader;

/**
* @var Zend_Application
*/
protected $application;

/**
* @var Zend_Application_Bootstrap_Bootstrap
*/
protected $bootstrap;

public static function main()
{
$suite = new TestSuite(__CLASS__);
Expand Down
20 changes: 20 additions & 0 deletions tests/Zend/Application/Resource/LocaleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,26 @@
*/
class Zend_Application_Resource_LocaleTest extends TestCase
{
/**
* @var array
*/
protected $loaders;

/**
* @var Zend_Loader_Autoloader
*/
protected $autoloader;

/**
* @var Zend_Application
*/
protected $application;

/**
* @var Zend_Application_Bootstrap_Bootstrap
*/
protected $bootstrap;

public static function main()
{
$suite = new TestSuite(__CLASS__);
Expand Down
Loading

0 comments on commit 0c4602c

Please sign in to comment.