Releases: eclipxe13/XmlSchemaValidator
Releases · eclipxe13/XmlSchemaValidator
Version 3.0.4
- Fix falsy comparisons (Psalm).
- Update license year to 2024.
- Update coding standards.
- Improve GitHub workflow:
- Add PHP 8.3 to test matrix.
- Run jobs using PHP 8.3.
- Update GitHub actions to version 4.
- Update code analysis titles.
- Rename matrix variable name php-version (singular).
- Update development tools.
Version 3.0.3
When split the content of a schema location value, must reindex the list of values.
The following code wasn't interpreted correctly:
<r xsi:schemaLocation="
http://test.org/schemas/ticket
http://localhost:8999/xsd/ticket.xsd
"/>
See issue #14. Thanks @brankopetric.
Development changes
- Add
fully_qualified_strict_types
rule tophp-cs-fixer
tool.
Version 3.0.2
Change return type on Schemas::getIterator()
to include Traversable
. This avoids compatibility issues with PHP 8.1.
Check DOMAttr::nodeValue
can be null
. Remove Psalm ignore.
Fix build, PHPStan ^1.4.7 does not recognize DOMNodeList
element types. Change type to iterable
.
Update development tools to recent versions.
This release includes Previous unreleased changes.
Version 3.0.1
Source Code:
- Fix bug when
schemaLocation
containsCR
orLF
.
Development environment:
- Change default branch name from
master
tomain
. - Update development instructions, see Contrib file.
- Update to Contributor Covenant Code of Conduct version 2.
- Update composer scripts.
- Update License year, happy new year on june.
- PHP Code Sniffer: configure paths in config file.
- PHPStan: configure paths in config file.
- PHPUnit: upgrade to version 9.5 config file and remove verbose by default.
- Psalm: ignore
UnnecessaryVarAnnotation
since it is not using PHP correct types. - Include
infection
(Mutation Testing) to build pipeline. - Migrate from Travis-CI to GitHub Actions. Thanks Travis-CI!
- Scrutinizer just receive code coverage.
Version 3.0.0
- Lot of breacking changes has been made, see upgrade from version
2.x
to3.x
. - Namespace change from
\XmlSchemaValidator
to\Eclipxe\XmlSchemaValidator
. - Now uses named exceptions, see exceptions documentation.
- Minimal PHP version is PHP 7.3.
LibXmlException
is not@internal
. Do not use it outside this project.SchemaValidator
constructor usesDOMDocument
.
To create it from a XML content useSchemaValidator::createFromString
.
Version 2.1.2
IMPORTANT: This should be the last release of version 2.x
- Internal change to split namespace and xsd location using
preg_split
. - Introduce deprecation notice on version
2.x
. - Update travis badges and link.
- Remove sensiolabs badge
Version 2.1.1
- Improve testing, 100% code coverage, each test class uses cover related class.
- Improve Travis-CI, do not create code coverage.
- Improve Scrutinizer-CI, create code coverage.
- Change development dependence from
phpstan/phpstan-shim
tophpstan/phpstan
. - Remove development dependence
overtrue/phplint
. - Remove SensioLabs Insight.
- Update documentation, license, changelog, etc..
Version 2.1.0
- Allow create a
SchemaValidator
instance usingDOMDocument
- Improved README
- Internal changes and build PHP 7.3
Version 2.0.2
- Fix bug when running on PHP >= 7.1 and warning was raised when call
DOMDocument::schemaValidateSource
making impossible to obtain errors fromlibxml_clear_errors
and throw a newLibXmlException
- Add a new test
SchemaValidatorTest::testValidateWithEmptySchema
to make sure that
aLibXmlException
exception is raised
Version 2.0.1
- Fix bug when using windows path (backslashs), it does not validate
- Add docblock to buildSchemas
- Improve building, add phpstan
- Use phplint instead of php-parallel-lint
- Update dependencies using composer-require-checker