easybill / zugferd-php

ZUGFeRD PHP SDK (Factur-X, XRechnung)
https://www.easybill.de
MIT License
77 stars 35 forks source link

Add support for php 8.1 #45

Closed BolZer closed 3 years ago

BolZer commented 3 years ago

At the moment easybill/zugferd-php does not support php 8.1 due to locking the JMS/Serializer Version to 3.4.

A newly introduced mechanic (readonly) in PHP 8.1 "clashes" with the ReadOnly Annotation in the JMS/Serializer Package. This issue was fixed with the version 3.16. For that reason this Pull Request was created to upgrade the previously mentioned package and allow this project to support PHP 8.1

If you run the make test81 with the outdated packages the following error will occur.

Screenshot 2021-11-26 at 15 15 18

As you can see by the newly introduced php action the tests will now run with php 8.1.