This repository was archived by the owner on Jun 4, 2025. It is now read-only.
Releases: brick/http
Releases · brick/http
0.3.2
0.3.1
0.3.0
💥 Breaking changes
- Minimum PHP version is now
7.4 - Classes
Message,Request,Response,Cookieare now immutable - All classes are now final
- All methods that affect state (
set*(),add*(),remove*(), ...) have been removed - The outdated
RequestInterfaceandResponseInterfacehave been removed
0.2.5
🗑 Deprecations
- All methods that affect state (
set*(),add*(),remove*(), ...) are now deprecated;
✨ New features
- Methods that return a new instance (
with*(),without*(), ...) have been introduced to replace them.
In the next minor release, the deprecated versions will be removed and all classes with be made immutable.
0.2.4
0.2.3
🐛 Bug fix
Variables passed to setQuery(), setPost() and setCookies() are now always cast to string and (nested) arrays of strings.
The previous behaviour (storing the original array as is) could lead to unexpected bugs with code that expected the values returned by getQuery(), getPost() and getCookies() to be strings, which is normally the case with data retrieved from an actual HTTP request.
0.2.2
- Fix
TypeErrorinResponse::parse()(@peter279k) - Enforce nested array of
UploadedFileinRequest::setFiles()