Skip to content

Commit

Permalink
Merge pull request #291 from hungtrinh/php82-complete-dynamic-propert…
Browse files Browse the repository at this point in the history
…ies-for-library
  • Loading branch information
glensc authored Nov 29, 2022
2 parents 713e3f4 + ae901d0 commit 66f96b4
Show file tree
Hide file tree
Showing 62 changed files with 307 additions and 54 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
5 changes: 5 additions & 0 deletions 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|mixed
*/
protected $_ops;

/**
* Options used:
* - server: instance of Zend_Amf_Server to use
Expand Down
5 changes: 5 additions & 0 deletions library/Zend/Cloud/Infrastructure/Adapter/Ec2.php
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
5 changes: 5 additions & 0 deletions 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 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
5 changes: 5 additions & 0 deletions library/Zend/EventManager/FilterChain.php
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
5 changes: 5 additions & 0 deletions library/Zend/Filter/Compress/CompressAbstract.php
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 mixed|array<string, mixed>
*/
protected $_options;

/**
* Class constructor
*
Expand Down
6 changes: 6 additions & 0 deletions 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 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
6 changes: 5 additions & 1 deletion library/Zend/Http/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,13 @@
* @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
#[AllowDynamicProperties]
class Zend_Http_Client
{
/**
* @var mixed|string|bool
*/
protected $_stream_name;

/**
* HTTP request methods
*/
Expand Down
5 changes: 4 additions & 1 deletion library/Zend/Http/Header/SetCookie.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,12 @@
* @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
#[AllowDynamicProperties]
class Zend_Http_Header_SetCookie
{
/**
* @var string
*/
protected $type = 'Cookie';

/**
* Cookie name
Expand Down
4 changes: 4 additions & 0 deletions library/Zend/Http/UserAgent/AbstractDevice.php
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
6 changes: 5 additions & 1 deletion library/Zend/Json/Decoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,13 @@
* @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
#[AllowDynamicProperties]
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 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
6 changes: 5 additions & 1 deletion library/Zend/Loader/Autoloader/Resource.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,13 @@
* @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
#[AllowDynamicProperties]
class Zend_Loader_Autoloader_Resource implements Zend_Loader_Autoloader_Interface
{
/**
* @var array<string, mixed>|array<string, object>
*/
protected $_resources;

/**
* @var string Base path to resource classes
*/
Expand Down
10 changes: 10 additions & 0 deletions library/Zend/Mail/Protocol/Smtp/Auth/Crammd5.php
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
8 changes: 6 additions & 2 deletions library/Zend/Pdf.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,14 @@
* @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
#[AllowDynamicProperties]
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 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 = [];

/**
* 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 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 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 indirect Zend_Pdf_Element_Dictionary object).
*
* @var Zend_Pdf_Element_Reference|Zend_Pdf_Element_Object
*/
protected $_dictionary;

/**
* Drawing instructions
*
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Pdf/Element/Reference.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public function toString($factory = null)

/**
* Dereference.
* Take inderect object, take $value member of this object (must be Zend_Pdf_Element),
* Take indirect object, take $value member of this object (must be Zend_Pdf_Element),
* take reference to the $value member of this object and assign it to
* $value member of current PDF Reference object
* $obj can be null
Expand Down
6 changes: 6 additions & 0 deletions 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
2 changes: 1 addition & 1 deletion library/Zend/Pdf/Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class Zend_Pdf_Page extends Zend_Pdf_Canvas_Abstract


/**
* Page dictionary (refers to an inderect Zend_Pdf_Element_Dictionary object).
* Page dictionary (refers to an indirect Zend_Pdf_Element_Dictionary object).
*
* @var Zend_Pdf_Element_Reference|Zend_Pdf_Element_Object
*/
Expand Down
6 changes: 5 additions & 1 deletion library/Zend/Pdf/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,13 @@
* @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
#[AllowDynamicProperties]
class Zend_Pdf_Parser
{
/**
* @var array<string, mixed>
*/
protected $_refTable;

/**
* String parser
*
Expand Down
6 changes: 5 additions & 1 deletion library/Zend/Pdf/Resource/Font/CidFont.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,13 @@
* @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
#[AllowDynamicProperties]
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
5 changes: 5 additions & 0 deletions library/Zend/Pdf/Resource/Font/Simple/Parsed.php
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
8 changes: 6 additions & 2 deletions library/Zend/Pdf/Resource/Font/Simple/Standard/Courier.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,14 @@
* @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
#[AllowDynamicProperties]
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
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,14 @@
* @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
#[AllowDynamicProperties]
class Zend_Pdf_Resource_Font_Simple_Standard_CourierBold extends Zend_Pdf_Resource_Font_Simple_Standard
{
/**** Public Interface ****/
/**
* @var bool
*/
protected $_isMonospaced;

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


/* Object Lifecycle */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,14 @@
* @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
#[AllowDynamicProperties]
class Zend_Pdf_Resource_Font_Simple_Standard_CourierBoldOblique extends Zend_Pdf_Resource_Font_Simple_Standard
{
/**** Public Interface ****/
/**
* @var bool
*/
protected $_isMonospaced;

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


/* Object Lifecycle */
Expand Down
Loading

0 comments on commit 66f96b4

Please sign in to comment.