Skip to content

Commit 9ac9ab8

Browse files
committed
Update CHANGELOG for release 3.2.3 with features, refactoring, and documentation additions.
1 parent b6c0163 commit 9ac9ab8

2 files changed

Lines changed: 27 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
# CHANGELOG
22

3+
## 3.2.3
4+
5+
### Features
6+
7+
- Added abstract `json()` method to `AbstractResponse` class, enforcing a consistent JSON response contract across all response implementations.
8+
- Added `declare(strict_types=1)` to all source files for improved type safety.
9+
- Resolved all PHPStan static analysis errors across the codebase.
10+
11+
### Refactoring
12+
13+
- Refactored tests and benchmarks with updated namespaces and structural improvements.
14+
15+
### Documentation
16+
17+
- Added routing architecture technical documentation (`docs/routing-architecture.md`).
18+
- Updated Packagist badge link in `README.md`.
19+
320
## 3.2.0
421

522
### Features

src/Klein/AbstractResponse.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -535,4 +535,14 @@ public function redirect(string $url, int $code = 302): static
535535

536536
return $this;
537537
}
538+
539+
540+
/**
541+
* Converts the given object to a JSON representation.
542+
*
543+
* @param mixed $object The data to be encoded as JSON.
544+
* @param ?string $jsonp_prefix Optional JSONP prefix to wrap the JSON response.
545+
* @return static Returns the current instance for method chaining.
546+
*/
547+
abstract public function json(mixed $object, ?string $jsonp_prefix = null): static;
538548
}

0 commit comments

Comments
 (0)