Fixes deprecation warnings with PHP 8.2: Creation of dynamic property xxx is deprecated
Found with phpstan:
Have latest version of phpstan installed somewhere (I've used version 1.10.15)
Clone this repo
Inside the repo, run:
$ /path/to/phpstan analyse --level=0 . | grep 'Access to an undefined property'
Expected to see no errors, but seeing:
78 Access to an undefined property Zend_Db_Adapter_Pdo_Abstract::$_pdoType.
107 Access to an undefined property Zend_Db_Adapter_Pdo_Abstract::$_pdoType.
112 Access to an undefined property Zend_Db_Adapter_Pdo_Abstract::$_pdoType.
Fixes deprecation warnings with PHP 8.2:
Creation of dynamic property xxx is deprecated
Found with phpstan:
PR fixes:
This fixes one of the warnings mentioned in https://github.com/magento/adobe-commerce-beta/issues/61, If I find more time and this PR actually gets approved, I might try to tackle the others as well one day.