Releases: eclipxe13/CfdiUtils
Releases · eclipxe13/CfdiUtils
Version 2.16.1
Fix bug when create expression to query for the SAT status and the RFC (emisor or receptor) contains the characters &
or Ñ
. The service requires that the expression is XML "encoded". Thanks, @ramboram and @TheSpectroMx for your help.
Refactor test script tests/estadosat.php
.
Fix typos on "Complemento de Nómina versión 1.2, revisión B" documentation.
Version 2.16.0
Version 2.15.1
Fix try to close public key when it didn't exists. Good catch PHPStan!
Version 2.15.0
Improvements:
- Include validation web service version 1.3 new response
ValidacionEFOS
asStatusResponse::getValidationEfos() string
andStatusResponse::isEfosListed() bool
. - Update
ConsultaCFDIServiceSAT.svc.xml
. It is unused, but exists for compatibility.
General:
- Upgrade to PHPUnit 9.5 and upgrade test suite.
- Test classes are declared as final.
- Remove support for PHP 7.0, PHP 7.1 and PHP 7.2.
- Compatilize with PHP 8.0 / OpenSSL:
- openssl functions does not return resources but objects.
- On deprecated functions run only if PHP version is lower than 8.0 and put annotations for
phpcs
.
Bugfixes:
- Validation
SELLO04
fails when there are special caracters likeé
andLC_CTYPE
is not setup. - Fix
COMPIMPUESTOSC01
description typo.
There are some soft backwards incompatibility changes:
- Method __construct() of class CfdiUtils\Validate\Cfdi33\Standard\FechaComprobante became final
- Method __construct() of class CfdiUtils\Validate\Cfdi33\RecepcionPagos\Pago became final
- The return type of CfdiUtils\Validate\Cfdi33\RecepcionPagos\Pago#getValidators() changed from no type to array
- The parameter $decimals of CfdiUtils\Utils\Format::number() changed from no type to a non-contravariant int
- The parameter $content of CfdiUtils\Cleaner\Cleaner::staticClean() changed from no type to a non-contravariant string.
Development environment:
- AppVeyor: Only run PHPUnit
- Travis-CI: On PHP != 7.4 only run PHPUnit
- Travis-CI: On PHP == 7.4 run all the build commands
- PHPStan: Upgrade to version 0.12, downgrade level to 5.
Version 2.14.2
Fixes:
- Validation
TIPOCOMP03
does not apply on documents typeN - Nómina
(by @ircsasw, thank you!).
Version 2.14.1
Fixes:
- Remove redundant valiations
METPAG01
andMETPAG02
. - Validation
TIPOCOMP04
does not apply on documents typeN - Nómina
.
Previously merged but not released.
- Looks like web service at
https://rdc.sat.gob.mx/
is having issues (again). This is breaking testing. To mitigate the problem, a new testing classCertificateDownloaderHelper
has been created to retry the download if it fails, for a maximum of 5 attempts. This change does not create a new release version. - Add
XDEBUG_MODE=coverage
on Travis-CI configuration file since it upgrade toXDebug v3.0.0
and it contains a bug that makesPHPUnit
break with the message: Use of undefined constant XDEBUG_CC_UNUSED - assumed 'XDEBUG_CC_UNUSED'. This will be resolved on xdebug/xdebug#699 but not released (yet).
Version 2.14.0
- Add
Retenciones
reader to work with CFDI de retenciones e información de pagos. (Closes #57) - Refactor
Cfdi
andRetenciones
to use recently createdXmlReaderTrait
.
Version 2.13.1
- Fix validation
FORMAPAGO01
, it only applies whenComplemento de Pago
exists. (Closes #58)
Version 2.13.0
Add helper elements for Complemento de Nómina 1.2 revisión B.
- Root element is
CfdiUtils\Elements\Nomina12\Nomina
. - Add test with 100% coverage on the namespace.
- Add documentation.
- Important It does not contain any validators but standard XSD.
Version 2.12.11
- Fix TimbreFiscalDigital XSLT URL locations, updated from SAT documentation. For more information check phpcfdi/sat-ns-registry project.