Skip to content

Commit

Permalink
Run php-cs-fixer fix on PHP >= 8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
eclipxe13 committed May 25, 2023
1 parent 1a3a295 commit f4abcb8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@
"@dev:tests"
],
"dev:check-style": [
"@php tools/php-cs-fixer fix --dry-run --verbose",
"@php -r 'exit(intval(PHP_VERSION_ID >= 74000));' || $PHP_BINARY tools/php-cs-fixer fix --dry-run --verbose",
"@php tools/phpcs --colors -sp"
],
"dev:fix-style": [
"@php tools/php-cs-fixer fix --verbose",
"@php -r 'exit(intval(PHP_VERSION_ID >= 74000));' || $PHP_BINARY tools/php-cs-fixer fix --verbose",
"@php tools/phpcbf --colors -sp"
],
"dev:tests": [
Expand Down
1 change: 1 addition & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ En este momento no hay cambios no liberados.

Los siguientes cambios aplican al entorno de desarrollo:

- La ejecución de `php-cs-fixer` dentro de `composer` se condiciona a mínimo PHP 8.0.
- Se refactoriza la clase `RepositoryItem` para que las responsabilidades de la creación de una instancia
a partir de un arreglo se realizen en la clase `RepositoryItemFactory`.
- Se corrigen las pruebas para usar `psr/http-message:^2.0`.
Expand Down

0 comments on commit f4abcb8

Please sign in to comment.