Skip to content

Commit ea24fb5

Browse files
committed
🚿
1 parent 8de9778 commit ea24fb5

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ A collection of utilities for use with [PSR-7 Message implementations](https://w
2828
# Documentation
2929

3030
## Requirements
31-
- PHP 8.1+
32-
- `ext-fileinfo`, `ext-json`, `ext-simplexml`, `ext-zlib`
33-
- for `MessageUtil::decompress()`: `ext-br` [kjdev/php-ext-brotli](https://github.com/kjdev/php-ext-brotli) and `ext-zstd` [kjdev/php-ext-zstd](https://github.com/kjdev/php-ext-zstd)
31+
- PHP 8.1+
32+
- `ext-fileinfo`, `ext-json`, `ext-simplexml`, `ext-zlib`
33+
- for `MessageUtil::decompress()`: `ext-br` [kjdev/php-ext-brotli](https://github.com/kjdev/php-ext-brotli) and `ext-zstd` [kjdev/php-ext-zstd](https://github.com/kjdev/php-ext-zstd)
3434

3535
## Installation
3636
**requires [composer](https://getcomposer.org)**

src/QueryUtil.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public static function cleanParams(iterable $params, int $bool_cast = null, bool
6161
$cleaned[$key] = match($bool_cast){
6262
self::BOOLEANS_AS_BOOL => $value,
6363
self::BOOLEANS_AS_INT => (int)$value,
64-
self::BOOLEANS_AS_STRING => $value ? 'true' : 'false',
64+
self::BOOLEANS_AS_STRING => ($value) ? 'true' : 'false',
6565
self::BOOLEANS_AS_INT_STRING => (string)(int)$value,
6666
};
6767

tests/HeaderUtilTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function testCombinedCookieHeaders():void{
8686
'Set-Cookie' => [
8787
'foo' => 'foo=baz',
8888
'whatever' => 'whatever=nope; HttpOnly',
89-
]
89+
],
9090
], HeaderUtil::normalize($headers));
9191
}
9292

0 commit comments

Comments
 (0)