PHP 8.2 required properties be defined before assigning them. The \WCS_PayPal_Reference_Transaction_API class has 4 properties assigned in __constructs which do not exist and return deprecated warnings.
Description
Support using PHP 8.2 with the \WCS_PayPal_Reference_Transaction_API class without filling the logs with deprecated warnings or throwing exceptions during testing.
How to test this PR
Set error_reporting = E_ALL in php.ini and tail the logs.
Use convertDeprecationsToExceptions="true" in config during unit testing.
Call any code which constructs the \WCS_PayPal_Reference_Transaction_API class.
Product impact
[X] Will this PR affect WooCommerce Subscriptions? yes/no/tbc, add issue ref
PHP 8.2 required properties be defined before assigning them. The
\WCS_PayPal_Reference_Transaction_API
class has 4 properties assigned in __constructs which do not exist and return deprecated warnings.Description
Support using PHP 8.2 with the
\WCS_PayPal_Reference_Transaction_API
class without filling the logs with deprecated warnings or throwing exceptions during testing.How to test this PR
error_reporting = E_ALL
in php.ini and tail the logs.convertDeprecationsToExceptions="true"
in\WCS_PayPal_Reference_Transaction_API
class.Product impact