Skip to content

Commit

Permalink
Merge pull request #170 from zf1s/php82-missing-props
Browse files Browse the repository at this point in the history
php8.2 compat: add missing class properties
  • Loading branch information
falkenhawk authored Jan 4, 2024
2 parents 143250f + c95b061 commit 9cc3d3f
Show file tree
Hide file tree
Showing 495 changed files with 4,566 additions and 41 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"ext-zlib": "*",
"php-parallel-lint/php-parallel-lint": "1.3.0",
"staabm/annotate-pull-request-from-checkstyle": "1.5.0",
"zf1s/dbunit": "1.3.2",
"zf1s/dbunit": "1.3.3",
"zf1s/phpunit": "3.7.43"
},
"autoload": {
Expand Down
5 changes: 5 additions & 0 deletions packages/zend-amf/library/Zend/Amf/Adobe/Introspector.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@
*/
class Zend_Amf_Adobe_Introspector
{
/**
* @var DOMElement
*/
protected $_ops;

/**
* Options used:
* - server: instance of Zend_Amf_Server to use
Expand Down
2 changes: 1 addition & 1 deletion packages/zend-amf/library/Zend/Amf/Parse/Serializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ abstract class Zend_Amf_Parse_Serializer
*
* @var bool
*/
protected $mbStringFunctionsOverloaded;
protected $_mbStringFunctionsOverloaded;

/**
* Constructor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,11 @@ abstract class Zend_Application_Bootstrap_BootstrapAbstract
*/
protected $_started = array();

/**
* @var Zend_Controller_Front
*/
public $frontController = null;

/**
* Constructor
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@
*/
class Zend_Cloud_Infrastructure_Adapter_Ec2 extends Zend_Cloud_Infrastructure_Adapter_AbstractAdapter
{
/**
* @var bool
*/
protected $error;

/**
* AWS constants
*/
Expand Down
6 changes: 6 additions & 0 deletions packages/zend-controller/library/Zend/Controller/Action.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,12 @@ abstract class Zend_Controller_Action implements Zend_Controller_Action_Interfac
*/
protected $_helper = null;

/**
* Controller's contexts, managed by Zend_Controller_Action_Helper_ContextSwitch
* @var array
*/
public $contexts;

/**
* Class constructor
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ class Zend_Controller_Router_Route_Chain extends Zend_Controller_Router_Route_Ab
*/
protected $_separators = array();

/**
* @var Zend_Controller_Request_Abstract
*/
protected $_request = null;

/**
* Instantiates route based on passed Zend_Config structure
*
Expand Down
5 changes: 5 additions & 0 deletions packages/zend-crypt/library/Zend/Crypt/Rsa/Key.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@
*/
class Zend_Crypt_Rsa_Key implements Countable
{
/**
* @var string
*/
protected $_certificateString;

/**
* @var string
*/
Expand Down
6 changes: 6 additions & 0 deletions packages/zend-db/library/Zend/Db/Adapter/Pdo/Abstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@
*/
abstract class Zend_Db_Adapter_Pdo_Abstract extends Zend_Db_Adapter_Abstract
{
/**
* PDO type.
*
* @var string
*/
protected $_pdoType = null;

/**
* Default class name for a DB statement.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@
*/
class Zend_EventManager_FilterChain implements Zend_EventManager_Filter
{
/**
* @var Zend_EventManager_ResponseCollection
*/
protected $responses;

/**
* @var Zend_EventManager_Filter_FilterIterator All filters
*/
Expand Down
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 = array();

/**
* Contains all Feed level date to append in feed output
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@
*/
abstract class Zend_Filter_Compress_CompressAbstract implements Zend_Filter_Compress_CompressInterface
{
/**
* @var array
*/
protected $_options;

/**
* Class constructor
*
Expand Down
20 changes: 20 additions & 0 deletions packages/zend-form/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
6 changes: 6 additions & 0 deletions packages/zend-form/library/Zend/Form/DisplayGroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@
*/
class Zend_Form_DisplayGroup implements Iterator,Countable
{
/**
* Element Id
* @var string
*/
protected $id;

/**
* Group attributes
* @var array
Expand Down
5 changes: 5 additions & 0 deletions packages/zend-gdata/library/Zend/Gdata/Spreadsheets.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@
*/
class Zend_Gdata_Spreadsheets extends Zend_Gdata
{
/**
* @var string
*/
protected $_server;

const SPREADSHEETS_FEED_URI = 'https://spreadsheets.google.com/feeds/spreadsheets';
const SPREADSHEETS_POST_URI = 'https://spreadsheets.google.com/feeds/spreadsheets/private/full';
const WORKSHEETS_FEED_LINK_URI = 'http://schemas.google.com/spreadsheets/2006#worksheetsfeed';
Expand Down
5 changes: 5 additions & 0 deletions packages/zend-http/library/Zend/Http/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@
*/
class Zend_Http_Client
{
/**
* @var mixed|string|bool
*/
protected $_stream_name;

/**
* HTTP request methods
*/
Expand Down
4 changes: 4 additions & 0 deletions packages/zend-http/library/Zend/Http/Header/SetCookie.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@
*/
class Zend_Http_Header_SetCookie
{
/**
* @var string
*/
protected $type = 'Cookie';

/**
* Cookie name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@
abstract class Zend_Http_UserAgent_AbstractDevice
implements Zend_Http_UserAgent_Device
{
public $device_os;

public $list;

/**
* Browser signature
*
Expand Down
5 changes: 5 additions & 0 deletions packages/zend-json/library/Zend/Json/Decoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@
*/
class Zend_Json_Decoder
{
/**
* @var mixed|string|null|bool|int|float
*/
protected $_tokenValue;

/**
* Parse tokens used to decode the JSON object. These are not
* for public consumption, they are just used internally to the
Expand Down
5 changes: 5 additions & 0 deletions packages/zend-json/library/Zend/Json/Server/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@
*/
class Zend_Json_Server_Response
{
/**
* @var string
*/
protected $_args;

/**
* Response error
* @var null|Zend_Json_Server_Error
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@
*/
class Zend_Loader_Autoloader_Resource implements Zend_Loader_Autoloader_Interface
{
/**
* @var array
*/
protected $_resources;

/**
* @var string Base path to resource classes
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,16 @@
*/
class Zend_Mail_Protocol_Smtp_Auth_Crammd5 extends Zend_Mail_Protocol_Smtp
{
/**
* @var string
*/
protected $_username;

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

/**
* Constructor.
*
Expand Down
7 changes: 6 additions & 1 deletion packages/zend-pdf/library/Zend/Pdf.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,12 @@
*/
class Zend_Pdf
{
/**** Class Constants ****/
/**
* @var string
*/
protected $_pdfHeaderVersion;

/**** Class Constants ****/

/**
* Version number of generated PDF documents.
Expand Down
7 changes: 6 additions & 1 deletion packages/zend-pdf/library/Zend/Pdf/Action.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,19 @@
*/
abstract class Zend_Pdf_Action extends Zend_Pdf_Target implements RecursiveIterator, Countable
{
/**
* Array of child outlines (array of Zend_Pdf_Outline objects)
* @var array
*/
public $childOutlines = array();

/**
* Action dictionary
*
* @var Zend_Pdf_Element_Dictionary|Zend_Pdf_Element_Object|Zend_Pdf_Element_Reference
*/
protected $_actionDictionary;


/**
* An original list of chained actions
*
Expand Down
2 changes: 1 addition & 1 deletion packages/zend-pdf/library/Zend/Pdf/Canvas.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function __construct($width, $height)
*/
protected function _addProcSet($procSetName)
{
$this->_procset[$procSetName] = 1;
$this->_procSet[$procSetName] = 1;
}

/**
Expand Down
7 changes: 7 additions & 0 deletions packages/zend-pdf/library/Zend/Pdf/Canvas/Abstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@
*/
abstract class Zend_Pdf_Canvas_Abstract implements Zend_Pdf_Canvas_Interface
{
/**
* Page dictionary (refers to an inderect Zend_Pdf_Element_Dictionary object).
*
* @var Zend_Pdf_Element_Reference|Zend_Pdf_Element_Object
*/
protected $_dictionary;

/**
* Drawing instructions
*
Expand Down
6 changes: 6 additions & 0 deletions packages/zend-pdf/library/Zend/Pdf/Outline.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@
*/
abstract class Zend_Pdf_Outline implements RecursiveIterator, Countable
{
protected $_title;
protected $_color;
protected $_italic;
protected $_bold;
protected $_target;

/**
* True if outline is open.
*
Expand Down
5 changes: 5 additions & 0 deletions packages/zend-pdf/library/Zend/Pdf/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@
*/
class Zend_Pdf_Parser
{
/**
* @var array
*/
protected $_refTable;

/**
* String parser
*
Expand Down
5 changes: 5 additions & 0 deletions packages/zend-pdf/library/Zend/Pdf/Resource/Font/CidFont.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@
*/
abstract class Zend_Pdf_Resource_Font_CidFont extends Zend_Pdf_Resource_Font
{
/**
* @var mixed
*/
protected $_isMonospaced;

/**
* Object representing the font's cmap (character to glyph map).
* @var Zend_Pdf_Cmap
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@
*/
abstract class Zend_Pdf_Resource_Font_Simple_Parsed extends Zend_Pdf_Resource_Font_Simple
{
/**
* @var mixed
*/
protected $_isMonospaced;

/**
* Object constructor
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,12 @@
*/
class Zend_Pdf_Resource_Font_Simple_Standard_Courier extends Zend_Pdf_Resource_Font_Simple_Standard
{
/**** Public Interface ****/
/**
* @var bool
*/
protected $_isMonospaced;

/**** Public Interface ****/


/* Object Lifecycle */
Expand Down
Loading

0 comments on commit 9cc3d3f

Please sign in to comment.