This commit is contained in:
Shish 2024-02-05 13:41:32 +00:00
parent 5d9090cd52
commit 6f165a974a
2 changed files with 3 additions and 3 deletions

View file

@ -5,7 +5,7 @@
* @param T|false $x * @param T|false $x
* @return T * @return T
*/ */
function false_throws(mixed $x, ?callable $errorgen=null): mixed function false_throws(mixed $x, ?callable $errorgen = null): mixed
{ {
if($x === false) { if($x === false) {
$msg = "Unexpected false"; $msg = "Unexpected false";
@ -22,7 +22,7 @@ function false_throws(mixed $x, ?callable $errorgen=null): mixed
* @param T|null $x * @param T|null $x
* @return T * @return T
*/ */
function null_throws(mixed $x, ?callable $errorgen=null): mixed function null_throws(mixed $x, ?callable $errorgen = null): mixed
{ {
if($x === null) { if($x === null) {
$msg = "Unexpected null"; $msg = "Unexpected null";

View file

@ -16,7 +16,7 @@ class StdLibExTest extends ShimmiePHPUnitTestCase
public function testJsonEncodeError(): void public function testJsonEncodeError(): void
{ {
$e = $this->assertException(\Exception::class, function() { $e = $this->assertException(\Exception::class, function () {
json_encode_ex("\xB1\x31"); json_encode_ex("\xB1\x31");
}); });
$this->assertEquals( $this->assertEquals(