Skip to content

[SPEC-006] getBodyAsStdClass() descarta corpo em DELETE (fix) - #25

Merged
code-cfernandes merged 1 commit into
mainfrom
fix/SPEC-006-delete-body
Oct 9, 2026
Merged

code-cfernandes merged 1 commit into
mainfrom
fix/SPEC-006-delete-body

Conversation

@code-cfernandes

Copy link
Copy Markdown
Member

Resumo

getBodyAsStdClass() não descarta mais o corpo em requisições DELETE
(que já era parseado por parseBody()), retornando o JSON/form recebido.

Mudanças

  • src/Http/Request.php: getBodyAsStdClass() exclui só GET/HEAD/OPTIONS.
  • tests/Http/RequestTest.php: 1 teste novo (DELETE com body).

Como testar

vendor/bin/phpunit --testsuite=CI
vendor/bin/phpunit --testsuite=Integration
composer cs:check
vendor/bin/phpstan analyse src/Http/Request.php --level=9

Versionamento (SemVer)

PATCH → 2.2.0 (agrupado; o MINOR das demais SPECs prevalece no release).

Documentação

Docblock do método atualizado; sem doc de usuário a alterar (gate doc-review aprovado).

Instruções de merge

  • Squash and merge para main.

@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown

🚀 Release Readiness Report - PivotPHP Core v2.1.1

✅ All Checks Passed!

  • Version: 2.1.1
  • PHPStan: Level 9, 0 errors
  • Tests: All tests passing
  • Code Style: PSR-12 compliant
  • PHP Compatibility: 8.1 - 8.4
  • Dependencies: All valid
  • Scripts: Consolidated and optimized

📦 Ready for Publication

The project is ready to be tagged and released!

Next Steps:

  1. Create a new tag: git tag -a v2.1.1 -m 'Release v2.1.1'
  2. Push the tag: git push origin v2.1.1
  3. The release workflow will automatically create a GitHub release
  4. Packagist will be automatically updated

- DELETE now returns the parsed body (JSON/form) instead of an empty stdClass.
- Only GET/HEAD/OPTIONS return an empty body.

Refs: SPEC-006 (#20)
@code-cfernandes
code-cfernandes force-pushed the fix/SPEC-006-delete-body branch from e8a77f4 to 8de34a0 Compare October 9, 2026 02:14
@code-cfernandes
code-cfernandes merged commit 52aa60e into main Oct 9, 2026
5 checks passed
@code-cfernandes
code-cfernandes deleted the fix/SPEC-006-delete-body branch October 9, 2026 02:14
@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown

🚀 Release Readiness Report - PivotPHP Core v2.1.1

✅ All Checks Passed!

  • Version: 2.1.1
  • PHPStan: Level 9, 0 errors
  • Tests: All tests passing
  • Code Style: PSR-12 compliant
  • PHP Compatibility: 8.1 - 8.4
  • Dependencies: All valid
  • Scripts: Consolidated and optimized

📦 Ready for Publication

The project is ready to be tagged and released!

Next Steps:

  1. Create a new tag: git tag -a v2.1.1 -m 'Release v2.1.1'
  2. Push the tag: git push origin v2.1.1
  3. The release workflow will automatically create a GitHub release
  4. Packagist will be automatically updated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant