Skip to content

Commit 4615adc

Browse files
authored
Merge pull request #9 from eclipxe13/version-5.0.0
PHP 8.3 (version 5.0.0)
2 parents 8f529fb + 00c79f3 commit 4615adc

9 files changed

Lines changed: 25 additions & 12 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ jobs:
9797
runs-on: "ubuntu-latest"
9898
strategy:
9999
matrix:
100-
php-version: ['8.2', '8.3', '8.4']
100+
php-version: ['8.3', '8.4']
101101
steps:
102102
- name: Checkout
103103
uses: actions/checkout@v4

.github/workflows/system.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: "ubuntu-latest"
2020
strategy:
2121
matrix:
22-
php-version: ['8.2', '8.3', '8.4']
22+
php-version: ['8.3', '8.4']
2323
steps:
2424
- name: Checkout
2525
uses: actions/checkout@v4

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,8 @@ sin temor a romper tu aplicación.
175175
| 1.0.0 | 8.2, 8.3 | 2023-12-13 Fuera de mantenimiento |
176176
| 2.0.0 | 8.2, 8.3 | 2024-03-07 Fuera de mantenimiento |
177177
| 3.0.0 | 8.2, 8.3 | 2024-03-07 Fuera de mantenimiento |
178-
| 4.0.0 | 8.2, 8.3, 8.4 | 2024-10-17 |
178+
| 4.0.0 | 8.2, 8.3, 8.4 | 2024-10-17 Fuera de mantenimiento |
179+
| 5.0.0 | 8.3, 8.4 | 2025-11-13 |
179180

180181
## Contribuciones
181182

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@
2222
"source": "https://github.com/phpcfdi/sat-pys-scraper"
2323
},
2424
"require": {
25-
"php": ">=8.2",
25+
"php": ">=8.3",
2626
"ext-dom": "*",
2727
"guzzlehttp/guzzle": "^7.8",
2828
"symfony/css-selector": "^7.0",
2929
"symfony/dom-crawler": "^7.0"
3030
},
3131
"require-dev": {
32-
"phpunit/phpunit": "^10.5"
32+
"phpunit/phpunit": "^12.4"
3333
},
3434
"autoload": {
3535
"psr-4": {

docs/CHANGELOG.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,24 @@ versión, aunque sí su incorporación en la rama principal de trabajo. Generalm
1111

1212
## Listado de cambios
1313

14-
### Versión 4.0.2 2024-11-13
14+
### Versión 5.0.0 2025-11-13
15+
16+
Se elimina la compatibilidad con PHP 8.2. Se mantiene PHP 8.3 y PHP 8.4.
17+
18+
Si estás usando esta herramienta en una implementación de la librería,
19+
esta versión no presenta cambios significativos a tu código.
20+
21+
- Se establece el tipo `string` a la constante `Scraper::PYS_URL`.
22+
23+
En el entorno de desarrollo:
24+
25+
- Se actualiza PHPUnit a la versión 12.4.
26+
27+
### Versión 4.0.2 2025-11-13
1528

1629
Se corrige la imagen de Docker incluyendo la dependencia `libzip`.
1730

18-
### Versión 4.0.1 2024-11-13
31+
### Versión 4.0.1 2025-11-13
1932

2033
Esta actualización confirma la compatibilidad (que ya existía) con PHP 8.4.
2134

src/App/ArgumentsBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function build(string ...$arguments): Arguments
2323
{
2424
$arguments = array_values($arguments);
2525
while ([] !== $arguments) {
26-
$argument = (string) array_shift($arguments);
26+
$argument = array_shift($arguments);
2727
match (true) {
2828
in_array($argument, ['--xml', '-x'], true) => $this->setXml((string) array_shift($arguments)),
2929
in_array($argument, ['--json', '-j'], true) => $this->setJson((string) array_shift($arguments)),

src/Scraper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
final class Scraper implements ScraperInterface
1515
{
1616
/** @noinspection HttpUrlsUsage */
17-
public const PYS_URL = 'http://pys.sat.gob.mx/PyS/catPyS.aspx';
17+
public const string PYS_URL = 'http://pys.sat.gob.mx/PyS/catPyS.aspx';
1818

1919
private Crawler|null $crawler = null;
2020

tests/Fakes/PysSimulator.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ public function __construct(private array $data)
2424
{
2525
}
2626

27-
/** @param array<mixed> $options */
28-
public function __invoke(RequestInterface $request, array $options): PromiseInterface
27+
public function __invoke(RequestInterface $request): PromiseInterface
2928
{
3029
if ('GET' === $request->getMethod()) {
3130
return $this->promise($this->createTypes());

tests/Integration/ScraperTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
class ScraperTest extends TestCase
1313
{
14-
private const MAX_RETRIES = 5;
14+
private const int MAX_RETRIES = 5;
1515

1616
public function testObtainSequence(): void
1717
{

0 commit comments

Comments
 (0)