Skip to content

Commit

Permalink
Add missing properties to library classes
Browse files Browse the repository at this point in the history
Ported from Shardj/zf1-future#291

PHP 8.2: Dynamic Properties are deprecated fix

Reference: https://php.watch/versions/8.2/dynamic-properties-deprecated
  • Loading branch information
hungtrinh authored and falkenhawk committed Jan 3, 2024
1 parent 38180fd commit d19ea6d
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bin/zf.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
*/
class ZF
{
/**
* @var string
*/
protected $_executable = '';

/**
* @var bool
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
*/
class Zend_Tool_Framework_Loader_IncludePathLoader_RecursiveFilterIterator extends RecursiveFilterIterator
{
/**
* @var mixed|\ReflectionClass
*/
public $ref;

protected $_denyDirectoryPattern = null;
protected $_acceptFilePattern = null;
Expand Down
4 changes: 4 additions & 0 deletions library/Zend/Tool/Framework/System/Provider/Manifest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@
class Zend_Tool_Framework_System_Provider_Manifest
implements Zend_Tool_Framework_Provider_Interface, Zend_Tool_Framework_Registry_EnabledInterface
{
/**
* @var \Zend_Tool_Framework_Registry_Interface|mixed
*/
protected $_registry;

public function setRegistry(Zend_Tool_Framework_Registry_Interface $registry)
{
Expand Down
4 changes: 4 additions & 0 deletions library/Zend/Tool/Project/Profile/Iterator/ContextFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
*/
class Zend_Tool_Project_Profile_Iterator_ContextFilter extends RecursiveFilterIterator
{
/**
* @var mixed|\ReflectionClass
*/
public $ref;

/**
* @var array
Expand Down
4 changes: 4 additions & 0 deletions library/Zend/Tool/Project/Profile/Resource/Container.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@
*/
class Zend_Tool_Project_Profile_Resource_Container implements RecursiveIterator, Countable
{
/**
* @var \Zend_Tool_Project_Profile_Resource_Container|mixed
*/
protected $_parentResource;

/**
* @var array
Expand Down

0 comments on commit d19ea6d

Please sign in to comment.