Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]`
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.2.0
2.2.1
2 changes: 1 addition & 1 deletion docs/API_REFERENCE.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
11 changes: 8 additions & 3 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -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<constraint>}`) — equivalent to `:id`.
- Array callables `[Classe::class, 'métodoDeInstância']` resolved via the DI container.
Expand Down Expand Up @@ -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)
Expand Down
5 changes: 3 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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*
4 changes: 2 additions & 2 deletions docs/quick-start.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -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. 🎉
48 changes: 48 additions & 0 deletions docs/releases/FRAMEWORK_OVERVIEW_v2.2.1.md
Original file line number Diff line number Diff line change
@@ -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.
2 changes: 1 addition & 1 deletion src/Core/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions tests/Core/ApplicationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

Expand Down
Loading