From 0c296854bf47d0e97ef74aad10eb86123a94fcbc Mon Sep 17 00:00:00 2001 From: Denis Smetannikov Date: Sat, 14 Oct 2023 23:28:18 +0300 Subject: [PATCH] PHP CS Fixer - `ordered_types` (#29) --- src/functions/aliases.php | 8 ++++---- src/functions/tools.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/functions/aliases.php b/src/functions/aliases.php index 42d9741..9898ef5 100644 --- a/src/functions/aliases.php +++ b/src/functions/aliases.php @@ -275,8 +275,8 @@ function isCurrentDate(string $date, int $timeDiff = 300, string $message = ''): } function isAmount( - float|int|array|string $expected, - float|int|array|string $actual, + array|float|int|string $expected, + array|float|int|string $actual, string $message = '', float $allowableDiff = 0.03, ): void { @@ -295,8 +295,8 @@ function isAmount( } function isNotAmount( - float|int|array|string $expected, - float|int|array|string $actual, + array|float|int|string $expected, + array|float|int|string $actual, string $message = '', float $allowableDiff = 0.03, ): void { diff --git a/src/functions/tools.php b/src/functions/tools.php index 8f409af..07f20cc 100644 --- a/src/functions/tools.php +++ b/src/functions/tools.php @@ -78,7 +78,7 @@ function openFile(string $path): ?string */ function httpRequest( string $url, - array|string|null $args = null, + null|array|string $args = null, string $method = Request::GET, array $options = [], ): Response {