Skip to content

Commit

Permalink
php 8.2 - fix issue 'Deprecated: Creation of dynamic property {x} is …
Browse files Browse the repository at this point in the history
…deprecated'
  • Loading branch information
hungtrinh committed Nov 15, 2022
1 parent 9f98404 commit dc049a3
Show file tree
Hide file tree
Showing 231 changed files with 1,388 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
chmod +x phpunit
shell: bash
- name: PHPUnit 9 on php 8.2
uses: docker://php:8.2.0RC6-cli-alpine
uses: docker://php:8.2-rc-cli-alpine
with:
args: -d memory_limit=-1 ./phpunit --bootstrap tests/TestHelper.php tests/Zend/AllTests.php
phpunit-php81:
Expand Down
2 changes: 2 additions & 0 deletions library/Zend/Amf/Parse/Serializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ abstract class Zend_Amf_Parse_Serializer
*/
protected $mbStringFunctionsOverloaded;

protected $_mbStringFunctionsOverloaded;

/**
* Constructor
*
Expand Down
1 change: 1 addition & 0 deletions library/Zend/Application/Bootstrap/Bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
* @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_Application_Bootstrap_Bootstrap
extends Zend_Application_Bootstrap_BootstrapAbstract
{
Expand Down
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
1 change: 1 addition & 0 deletions library/Zend/Http/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
* @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
{
/**
Expand Down
1 change: 1 addition & 0 deletions library/Zend/Http/Header/SetCookie.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
* @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
{

Expand Down
1 change: 1 addition & 0 deletions library/Zend/Json/Decoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
* @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
{
/**
Expand Down
1 change: 1 addition & 0 deletions library/Zend/Loader/Autoloader/Resource.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
* @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
{
/**
Expand Down
1 change: 1 addition & 0 deletions library/Zend/Pdf.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
* @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 ****/
Expand Down
1 change: 1 addition & 0 deletions library/Zend/Pdf/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
* @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
{
/**
Expand Down
1 change: 1 addition & 0 deletions library/Zend/Pdf/Resource/Font/CidFont.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
* @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
{
/**
Expand Down
1 change: 1 addition & 0 deletions library/Zend/Pdf/Resource/Font/Simple/Standard/Courier.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
* @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 ****/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
* @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 ****/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
* @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 ****/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
* @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_CourierOblique extends Zend_Pdf_Resource_Font_Simple_Standard
{
/**** Public Interface ****/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
* @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_Helvetica extends Zend_Pdf_Resource_Font_Simple_Standard
{
/**** Public Interface ****/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
* @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_HelveticaBold extends Zend_Pdf_Resource_Font_Simple_Standard
{
/**** Public Interface ****/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
* @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_HelveticaBoldOblique extends Zend_Pdf_Resource_Font_Simple_Standard
{
/**** Public Interface ****/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
* @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_HelveticaOblique extends Zend_Pdf_Resource_Font_Simple_Standard
{
/**** Public Interface ****/
Expand Down
1 change: 1 addition & 0 deletions library/Zend/Pdf/Resource/Font/Simple/Standard/Symbol.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
* @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_Symbol extends Zend_Pdf_Resource_Font_Simple_Standard
{
/**** Instance Variables ****/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
* @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_TimesBold extends Zend_Pdf_Resource_Font_Simple_Standard
{
/**** Public Interface ****/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
* @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_TimesBoldItalic extends Zend_Pdf_Resource_Font_Simple_Standard
{
/**** Public Interface ****/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
* @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_TimesItalic extends Zend_Pdf_Resource_Font_Simple_Standard
{
/**** Public Interface ****/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
* @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_TimesRoman extends Zend_Pdf_Resource_Font_Simple_Standard
{
/**** Public Interface ****/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
* @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_ZapfDingbats extends Zend_Pdf_Resource_Font_Simple_Standard
{
/**** Instance Variables ****/
Expand Down
1 change: 1 addition & 0 deletions library/Zend/Pdf/Resource/Font/Type0.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
* @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_Type0 extends Zend_Pdf_Resource_Font
{
/**
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
1 change: 1 addition & 0 deletions library/Zend/Stdlib/CallbackHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
* @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_Stdlib_CallbackHandler
{
/**
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
1 change: 1 addition & 0 deletions tests/Zend/AllTests/StreamWrapper/PhpInput.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
* @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_AllTests_StreamWrapper_PhpInput
{
protected static $_data;
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
Loading

0 comments on commit dc049a3

Please sign in to comment.