If like me you can't edit the file (because our CD will fail) follow these steps:
- In the root of your project, create a directory
patches/composer
- Create a file called
vendor-vertex-compilation-issue.diff
- In your
composer.json
add this to the list of "require" "cweagans/composer-patches": "1.6.7"
- Still in your
composer.json
add this to the extras
"patches": {
"vertex/module-tax":{
"MAGETWO: vendor vertex compilation issue": "patches/composer/vendor-vertex-compilation-issue.diff"
}
}
- Put the following content into the
vendor-vertex-compilation-issue.diff
file that you created earlier
diff --git a/Model/FlexField/Processor/OrderCurrencyGetterProcessor.php b/Model/FlexField/Processor/OrderCurrencyGetterProcessor.php
index 6fb4944..86a66f4 100644
--- a/Model/FlexField/Processor/OrderCurrencyGetterProcessor.php
+++ b/Model/FlexField/Processor/OrderCurrencyGetterProcessor.php
@@ -4,7 +4,7 @@
* @author Mediotype https://www.mediotype.com/
*/
-namespace Vertex\Tax\Model\Flexfield\Processor;
+namespace Vertex\Tax\Model\FlexField\Processor;
use Magento\Framework\Exception\NoSuchEntityException;
use Magento\Quote\Api\CartRepositoryInterface;
- run
composer install
This should install the vertex module and apply the patch to the module and then you can go on with compiling Magento as you normally would
UPDATE
As of Magento 2.3.4, the vertex/module-tax has been upgraded to 3.3.0
(from 3.2.0
) and the issue is corrected and the patch no longer needed