Skip to content

Commit 9d19770

Browse files
authored
Merge pull request #5 from eclipxe13/version-0.2.1
UnboundedOccursPaths.json & Dev Tools
2 parents 3a1ad0b + 9568b3b commit 9d19770

9 files changed

Lines changed: 33 additions & 17 deletions

File tree

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
/tests/ export-ignore
1515
/.gitattributes export-ignore
1616
/.gitignore export-ignore
17-
/.php_cs.dist export-ignore
17+
/.php-cs-fixer.dist.php export-ignore
1818
/.scrutinizer.yml export-ignore
1919
/phpcs.xml.dist export-ignore
2020
/phpunit.xml.dist export-ignore

.github/workflows/build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
name: build
22
on:
33
pull_request:
4+
branches:
5+
- main
46
push:
7+
branches:
8+
- main
59
paths:
610
- ".github/workflows/build.yml"
711
- "bin/**"

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@
22
/tools/
33
/vendor/
44
/composer.lock
5-
.phpunit.result.cache

.phive/phars.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phive xmlns="https://phar.io/phive">
3-
<phar name="php-cs-fixer" version="^2.4" location="./tools/php-cs-fixer" copy="false"/>
3+
<phar name="php-cs-fixer" version="^3.0" location="./tools/php-cs-fixer" copy="false"/>
44
<phar name="phpcbf" version="^3.0" location="./tools/phpcbf" copy="false"/>
55
<phar name="phpcs" version="^3.0" location="./tools/phpcs" copy="false"/>
66
<phar name="phpstan" version="^0.12" location="./tools/phpstan" copy="false"/>

.php_cs.dist renamed to .php-cs-fixer.dist.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
return PhpCsFixer\Config::create()
5+
return (new PhpCsFixer\Config())
66
->setRiskyAllowed(true)
77
->setCacheFile(__DIR__ . '/build/php_cs.cache')
88
->setRules([
@@ -19,7 +19,7 @@
1919
'no_extra_blank_lines' => true,
2020
'function_typehint_space' => true,
2121
'no_alias_functions' => true,
22-
'trailing_comma_in_multiline_array' => true,
22+
'trailing_comma_in_multiline' => ['elements' => ['arrays', 'arguments']],
2323
'new_with_braces' => true,
2424
'no_blank_lines_after_class_opening' => true,
2525
'no_blank_lines_after_phpdoc' => true,

docs/CHANGELOG.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,22 @@ versión aunque sí su incorporación en la rama principal de trabajo, generalme
99

1010
## Cambios no liberados en una versión
1111

12-
### GitHub Actions
12+
No hay cambios no liberados.
1313

14+
## Listado de cambios
15+
16+
### Versión 0.2.1 2021-05-17
17+
18+
- Se actualiza el archivo `UnboundedOccursPaths.json` porque se incluyó el nuevo complemento `CartaPorte`.
19+
20+
Cambios en desarrollo
21+
22+
- Se actualizó la herramienta `php-cs-fixer` a `^3.0`.
23+
- Se actualizó el archivo de configuración de PHPUnit a uno más apegado al recomendado.
1424
- Se agrega a GitHub Actions un flujo de trabajo de construcción del proyecto.
1525
- Se agrega a GitHub Actions un flujo de trabajo de actualización y PR desde `phpcfdi/sat-ns-registry`.
1626
- Se elimina la integración con Travis-CI. Gracias.
1727

18-
## Listado de cambios
19-
2028
### Versión 0.2.0 2021-03-22
2129

2230
- Se extrae la lógica del conteo de hijos de `Nodes\Children` a `Nodes\KeysCounter`.

phpunit.xml.dist

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
1-
<?xml version="1.0"?>
1+
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
33
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
4-
cacheResultFile="build/phpunit.result.cache"
5-
colors="true"
4+
bootstrap="tests/bootstrap.php"
5+
cacheResultFile="build/phpunit.cache/test-results"
6+
executionOrder="depends,defects"
7+
failOnRisky="true"
8+
failOnWarning="true"
69
verbose="true"
7-
bootstrap="tests/bootstrap.php">
10+
colors="true">
11+
812
<testsuites>
9-
<testsuite name="Default">
10-
<directory>./tests/</directory>
13+
<testsuite name="default">
14+
<directory suffix="Test.php">./tests/</directory>
1115
</testsuite>
1216
</testsuites>
13-
<coverage>
17+
18+
<coverage cacheDirectory="build/phpunit.cache/code-coverage" processUncoveredFiles="true">
1419
<include>
1520
<directory suffix=".php">./src/</directory>
1621
</include>

src/CfdiToDataNode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ private function convertElementoToDataNode(DOMElement $element, string $basePath
4949
foreach ($element->childNodes as $childElement) {
5050
if ($childElement instanceof DOMElement) {
5151
$convertionChildren->append(
52-
$this->convertElementoToDataNode($childElement, $path)
52+
$this->convertElementoToDataNode($childElement, $path),
5353
);
5454
}
5555
}

tests/Unit/XsdMaxOccurs/XsdMaxOccursFromNsRegistryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function testObtainPathsUsingFakeRegistry(): void
3838
[
3939
'/second/foo/bar/baz',
4040
'/second/foo/bar/xee',
41-
]
41+
],
4242
);
4343

4444
/** @var DownloaderInterface&MockObject $downloader */

0 commit comments

Comments
 (0)