Closed hostep closed 1 year ago
Added an additional change: dropping support for PHP 7.0 from the composer.json
constraints, since you guys use nullable types syntax here and there, which was only introduced in PHP 7.1
Examples:
$ find . -type f ! -path '*/vendor/*' -iname '*.php' -exec php70 -l {} \;
PHP Parse error: syntax error, unexpected '?', expecting variable (T_VARIABLE) in ./Block/Adminhtml/AbstractOrder.php on line 33
Parse error: syntax error, unexpected '?', expecting variable (T_VARIABLE) in ./Block/Adminhtml/AbstractOrder.php on line 33
Errors parsing ./Block/Adminhtml/AbstractOrder.php
PHP Parse error: syntax error, unexpected '?', expecting variable (T_VARIABLE) in ./Block/Adminhtml/Form.php on line 34
Parse error: syntax error, unexpected '?', expecting variable (T_VARIABLE) in ./Block/Adminhtml/Form.php on line 34
Errors parsing ./Block/Adminhtml/Form.php
PHP Parse error: syntax error, unexpected '?', expecting variable (T_VARIABLE) in ./Helper/Checkout.php on line 51
Parse error: syntax error, unexpected '?', expecting variable (T_VARIABLE) in ./Helper/Checkout.php on line 51
Errors parsing ./Helper/Checkout.php
Dear @hostep
Thanks for reaching out to us.
We will investigate your request and get back to you as soon as possible.
Best regards
[to client on git]
Hi @hostep
Thank you for your request, please note that we review it and accepted and regarding this, a new version of the plugin is released on the marketplace.
Best regards
Thanks @logeecom!
Can you please make sure the github repo is up2date with the latest version? It's easier to review the changes between versions this way. See #162
Hi there
Added some fixes:
Exception
(Magento\Setup\Exception
doesn't exists)$aggregation
&$logger
members (fixes PHP 8.2 deprecated usage of creation of dynamic properties)$this
in DataPatches, according to phpdoccomposer.json
(if you specify~8.1
, it will match 8.1 till 8.9999, if you however specify~8.1.0
it will only match 8.1.0 to 8.1.999, which is what you want here, see documentation)All these (except the
composer.json
one) were found by using the phpstan tool and scanning on level 0, these are the things it reported and are now fixed (it finds more problems, but those are more complicated to solve and since I don't know this module very well, I decided not to try to tackle those left overs):Be sure to double check all changes, I haven't tested anything, only looked at the output of phpstan.
Thanks!