fmt
This commit is contained in:
parent
5d9090cd52
commit
6f165a974a
2 changed files with 3 additions and 3 deletions
|
@ -5,7 +5,7 @@
|
|||
* @param T|false $x
|
||||
* @return T
|
||||
*/
|
||||
function false_throws(mixed $x, ?callable $errorgen=null): mixed
|
||||
function false_throws(mixed $x, ?callable $errorgen = null): mixed
|
||||
{
|
||||
if($x === false) {
|
||||
$msg = "Unexpected false";
|
||||
|
@ -22,7 +22,7 @@ function false_throws(mixed $x, ?callable $errorgen=null): mixed
|
|||
* @param T|null $x
|
||||
* @return T
|
||||
*/
|
||||
function null_throws(mixed $x, ?callable $errorgen=null): mixed
|
||||
function null_throws(mixed $x, ?callable $errorgen = null): mixed
|
||||
{
|
||||
if($x === null) {
|
||||
$msg = "Unexpected null";
|
||||
|
|
|
@ -16,7 +16,7 @@ class StdLibExTest extends ShimmiePHPUnitTestCase
|
|||
|
||||
public function testJsonEncodeError(): void
|
||||
{
|
||||
$e = $this->assertException(\Exception::class, function() {
|
||||
$e = $this->assertException(\Exception::class, function () {
|
||||
json_encode_ex("\xB1\x31");
|
||||
});
|
||||
$this->assertEquals(
|
||||
|
|
Reference in a new issue