diff --git a/CHANGELOG.md b/CHANGELOG.md index 41060b1..ebe2f67 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,16 @@ All notable changes to the PivotPHP Framework will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [2.2.1] - 2026-10-09 + +### Fixed + +- `Application::staticFiles()` passed `$this` to + `StaticFileManager::registerDirectory()`, whose signature changed when the static file + manager was decoupled into `pivotphp/core-routing` (it now expects + `($routePrefix, $physicalPath, $options)`). Removes the stale `$this` argument. +- PSR-12 "multi-line function call" violations in 4 test files. + ## [2.2.0] - 2026-10-08 - Route Syntax & DX Edition > Includes the PSR-7 2.0 compatibility fix documented below under `[2.1.1]` diff --git a/VERSION b/VERSION index e3a4f19..fae692e 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.2.0 \ No newline at end of file +2.2.1 \ No newline at end of file diff --git a/docs/API_REFERENCE.md b/docs/API_REFERENCE.md index ecd39b3..cc7095f 100644 --- a/docs/API_REFERENCE.md +++ b/docs/API_REFERENCE.md @@ -1,6 +1,6 @@ # PivotPHP Core - API Reference -**Version:** 2.2.0 +**Version:** 2.2.1 > ⚠️ **Nota de revisão:** este documento foi originalmente escrito para a v1.1.3/v1.2.0. A > assinatura do construtor de `Application` e alguns exemplos foram corrigidos para refletir diff --git a/docs/README.md b/docs/README.md index b07aace..6633d51 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,6 +1,6 @@ -# PivotPHP Core v2.2.0 Documentation +# PivotPHP Core v2.2.1 Documentation -Welcome to the complete documentation for **PivotPHP Core v2.2.0** - a high-performance, lightweight PHP microframework inspired by Express.js, designed for building APIs and web applications with exceptional speed and simplicity. +Welcome to the complete documentation for **PivotPHP Core v2.2.1** - a high-performance, lightweight PHP microframework inspired by Express.js, designed for building APIs and web applications with exceptional speed and simplicity. ## 🚀 Quick Navigation @@ -42,6 +42,11 @@ Welcome to the complete documentation for **PivotPHP Core v2.2.0** - a high-perf ## ✨ What's Current (v2.2.x) +### 🩹 **v2.2.1 — Patch** +- Fixed `Application::staticFiles()` (removed stale `$this` argument to + `StaticFileManager::registerDirectory()` after its decoupling into core-routing). +- PSR-12 corrections in test files. + ### 🎯 **v2.2.0 — Route Syntax & DX Edition** - Brace-delimited route parameters (`{id}` / `{id}`) — equivalent to `:id`. - Array callables `[Classe::class, 'métodoDeInstância']` resolved via the DI container. @@ -99,7 +104,7 @@ complete v1.1.4 release documentation suite. ## 🔧 Framework Status -- **Current Version**: v2.2.0 (Route Syntax & DX Edition) +- **Current Version**: v2.2.1 (Patch) - **PHP Requirements**: 8.1+ with strict typing - **Production Ready**: Enterprise-grade quality with type safety - **Community**: [GitHub](https://github.com/PivotPHP) diff --git a/docs/index.md b/docs/index.md index 7c884dd..9830cf5 100644 --- a/docs/index.md +++ b/docs/index.md @@ -57,7 +57,8 @@ Todas as entradas abaixo linkam para o registro oficial da versão — um docume `FRAMEWORK_OVERVIEW` dedicado quando existe um, ou a entrada correspondente no [CHANGELOG](../CHANGELOG.md) quando não existe: -- [**v2.2.0 (Atual)**](releases/FRAMEWORK_OVERVIEW_v2.2.0.md) - Route Syntax & DX Edition +- [**v2.2.1 (Atual)**](releases/FRAMEWORK_OVERVIEW_v2.2.1.md) - Patch +- [**v2.2.0**](releases/FRAMEWORK_OVERVIEW_v2.2.0.md) - Route Syntax & DX Edition - [**v2.1.1**](../CHANGELOG.md) - PSR-7 2.0 Compatibility Fix (nunca taggeada; incluída na v2.2.0) - [**v2.1.0**](../CHANGELOG.md) - Response Emission, Pool Safety & Deprecation Cycle - [**v2.0.0**](releases/FRAMEWORK_OVERVIEW_v2.0.0.md) - Modular Routing & Legacy Cleanup Edition @@ -109,4 +110,4 @@ Todas as entradas abaixo linkam para o registro oficial da versão — um docume --- -*📖 Documentação atualizada em: 08 de outubro de 2026 - v2.2.0* +*📖 Documentação atualizada em: 09 de outubro de 2026 - v2.2.1* diff --git a/docs/quick-start.md b/docs/quick-start.md index 7eb82be..9eb3693 100644 --- a/docs/quick-start.md +++ b/docs/quick-start.md @@ -1,6 +1,6 @@ # Quick Start Guide -Get up and running with PivotPHP Core v2.2.0 in under 5 minutes! This guide will walk you through installation, basic setup, and creating your first API endpoints. +Get up and running with PivotPHP Core v2.2.1 in under 5 minutes! This guide will walk you through installation, basic setup, and creating your first API endpoints. ## 🚀 Installation @@ -274,4 +274,4 @@ $app->use(new CorsMiddleware(['allowed_origins' => ['*']])); --- -**Parabéns!** Agora você tem uma base sólida para criar provas de conceito e protótipos com PivotPHP Core v2.2.0. 🎉 +**Parabéns!** Agora você tem uma base sólida para criar provas de conceito e protótipos com PivotPHP Core v2.2.1. 🎉 diff --git a/docs/releases/FRAMEWORK_OVERVIEW_v2.2.1.md b/docs/releases/FRAMEWORK_OVERVIEW_v2.2.1.md new file mode 100644 index 0000000..48c4661 --- /dev/null +++ b/docs/releases/FRAMEWORK_OVERVIEW_v2.2.1.md @@ -0,0 +1,48 @@ +# PivotPHP v2.2.1 - Framework Overview + +**Version:** 2.2.1 (Patch) +**Release Date:** 2026-10-09 +**PHP Requirements:** 8.1+ + +--- + +## 🎯 Executive Summary + +PivotPHP v2.2.1 is a **patch release** that fixes a static-file-serving regression introduced +when `StaticFileManager` was decoupled into `pivotphp/core-routing`, plus PSR-12 style +violations in test files. No public-API change. + +### Release Highlights + +- ✅ **`Application::staticFiles()` fixed** — removed the stale `$this` argument passed to + `StaticFileManager::registerDirectory()`, whose signature changed after the decoupling. +- ✅ **PSR-12** — multi-line function-call violations in 4 test files corrected. +- ✅ **PHPStan Level 9** — back to zero errors (117 files). + +--- + +## 📊 Technical Metrics + +| Metric | v2.2.1 | +|--------|--------| +| **PSR-7** | `psr/http-message` `^1.1\|^2.0` (dual support) | +| **PSR-15** | Compliant | +| **PHPStan** | Level 9 (0 errors) | +| **Coding style** | PSR-12 | +| **Tests** | 1093 CI + 34 integration | + +### Performance + +No performance change — this patch only corrects a broken static-file call and test-file +formatting. + +--- + +## 🔧 Compatibility + +Fully backward compatible with v2.2.0. No breaking changes. + +## 📚 Related Documentation + +- `CHANGELOG.md` — detailed change log. +- `docs/releases/FRAMEWORK_OVERVIEW_v2.2.0.md` — the 2.2.0 (Route Syntax & DX Edition) overview. diff --git a/src/Core/Application.php b/src/Core/Application.php index 86e3ef3..c6bba58 100644 --- a/src/Core/Application.php +++ b/src/Core/Application.php @@ -44,7 +44,7 @@ class Application implements ApplicationInterface /** * Versão do framework. */ - public const VERSION = '2.2.0'; + public const VERSION = '2.2.1'; /** * Container de dependências PSR-11. diff --git a/tests/Core/ApplicationTest.php b/tests/Core/ApplicationTest.php index 9099099..00d2bab 100644 --- a/tests/Core/ApplicationTest.php +++ b/tests/Core/ApplicationTest.php @@ -67,8 +67,8 @@ private function removeDirectory(string $dir): void public function testApplicationInitialization(): void { $this->assertInstanceOf(Application::class, $this->app); - $this->assertEquals('2.2.0', Application::VERSION); - $this->assertEquals('2.2.0', $this->app->version()); + $this->assertEquals('2.2.1', Application::VERSION); + $this->assertEquals('2.2.1', $this->app->version()); $this->assertFalse($this->app->isBooted()); }