Skip to content

[SPEC-004] Adicionar método Request::body() (feat) - #24

Merged
code-cfernandes merged 1 commit into
mainfrom
feat/SPEC-004-request-body
Oct 9, 2026
Merged

code-cfernandes merged 1 commit into
mainfrom
feat/SPEC-004-request-body

Conversation

@code-cfernandes

Copy link
Copy Markdown
Member

Resumo

Adiciona o método Request::body(), que retorna o corpo da requisição como
stdClass (alias de getBodyAsStdClass()), completando a API Express.js.

Mudanças

  • src/Http/Request.php: novo método body(): stdClass.
  • tests/Http/RequestTest.php: 2 testes novos.
  • docs/technical/http/request.md: documenta 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)

MINOR → 2.2.0 (agrupado com as demais SPECs do core; CHANGELOG no release).

Documentação

docs/technical/http/request.md atualizado (gate doc-review aprovado).

Instruções de merge

  • Squash and merge para main.

- Request::body() returns the parsed body as stdClass (alias of
  getBodyAsStdClass()).
- Document the method in docs/technical/http/request.md.

Refs: SPEC-004 (#18)
@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

@code-cfernandes
code-cfernandes merged commit 5497a23 into main Oct 9, 2026
6 checks passed
@code-cfernandes
code-cfernandes deleted the feat/SPEC-004-request-body branch October 9, 2026 02:12
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