Skip to content

Commit 4bac601

Browse files
committed
run cs-fixer using php 8.3
1 parent 92a2cf4 commit 4bac601

File tree

6 files changed

+39
-32
lines changed

6 files changed

+39
-32
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,4 @@ jobs:
5050
run: docker compose -f docker-compose.yml run test_runner vendor/bin/phpunit --no-progress --testsuite Structure
5151

5252
- name: run cs fixer
53-
run: docker compose -f docker-compose.yml run test_runner composer cs -- --show-progress=none
53+
run: docker run --rm -v .:/opt/project -w /opt/project php:8.3-cli sh -c 'curl -sS https://getcomposer.org/installer | php && php composer.phar run cs'

PDO/PDO.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2079,36 +2079,46 @@ public function copyFromArray(
20792079
string $nullAs = "\\\\N",
20802080
?string $fields = null
20812081
): bool {}
2082+
20822083
public function copyFromFile(
20832084
string $tableName,
20842085
string $filename,
20852086
string $separator = "\t",
20862087
string $nullAs = "\\\\N",
20872088
?string $fields = null
20882089
): bool {}
2090+
20892091
public function copyToArray(
20902092
string $tableName,
20912093
string $separator = "\t",
20922094
string $nullAs = "\\\\N",
20932095
?string $fields = null
20942096
): array|false {}
2097+
20952098
public function copyToFile(
20962099
string $tableName,
20972100
string $filename,
20982101
string $separator = "\t",
20992102
string $nullAs = "\\\\N",
21002103
?string $fields = null
21012104
): bool {}
2105+
21022106
public function escapeIdentifier(string $input): string {}
2107+
21032108
public function getNotify(int $fetchMode = \PDO::FETCH_DEFAULT, int $timeoutMilliseconds = 0): array|false {}
2104-
public function getPid(): int{}
2109+
2110+
public function getPid(): int {}
2111+
21052112
public function lobCreate(): string|false {}
2113+
21062114
/**
21072115
* Opens an existing large object stream. Must be called inside a transaction.
21082116
* @return resource|false
21092117
*/
21102118
public function lobOpen(string $oid, string $mode = "rb") {}
2119+
21112120
public function lobUnlink(string $oid): bool {}
2121+
21122122
public function setNoticeCallback(?callable $callback): void {}
21132123
}
21142124
}

date/date_c.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ class DateTimeImmutable implements DateTimeInterface
196196
* </p></blockquote>
197197
* @throws Exception Emits Exception in case of an error.
198198
*/
199-
#[PhpStormStubsElementAvailable(from:'5.5', to: '8.2')]
199+
#[PhpStormStubsElementAvailable(from: '5.5', to: '8.2')]
200200
public function __construct(
201201
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $datetime = "now",
202202
#[LanguageLevelTypeAware(['8.0' => 'DateTimeZone|null'], default: 'DateTimeZone')] $timezone = null
@@ -218,7 +218,7 @@ public function __construct(
218218
* </p></blockquote>
219219
* @throws DateMalformedStringException Emits Exception in case of an error.
220220
*/
221-
#[PhpStormStubsElementAvailable(from:'8.3')]
221+
#[PhpStormStubsElementAvailable(from: '8.3')]
222222
public function __construct(
223223
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $datetime = "now",
224224
#[LanguageLevelTypeAware(['8.0' => 'DateTimeZone|null'], default: 'DateTimeZone')] $timezone = null
@@ -280,7 +280,7 @@ public static function getLastErrors(): array|false {}
280280
* @return static|false Returns the newly created object or false on failure.
281281
* Returns the {@link https://secure.php.net/manual/en/class.datetimeimmutable.php DateTimeImmutable} object for method chaining or <b>FALSE</b> on failure.
282282
*/
283-
#[PhpStormStubsElementAvailable(from:'5.5', to: '8.2')]
283+
#[PhpStormStubsElementAvailable(from: '5.5', to: '8.2')]
284284
#[Pure]
285285
#[TentativeType]
286286
#[LanguageLevelTypeAware(['8.4' => 'DateTimeImmutable'], default: 'static|false')]

jsonpath/jsonpath.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,4 @@ public function find(array $data, string $expression): array|false {}
2626
/**
2727
* @since 7.4
2828
*/
29-
class JsonPathException extends \RuntimeException
30-
{
31-
}
29+
class JsonPathException extends \RuntimeException {}

posix/posix.php

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -211,11 +211,11 @@ function posix_getsid(int $process_id): int|false {}
211211
*/
212212
#[Pure]
213213
#[ArrayShape([
214-
'sysname' => 'string',
215-
'nodename' => 'string',
216-
'release' => 'string',
217-
'version' => 'string',
218-
'machine' => 'string',
214+
'sysname' => 'string',
215+
'nodename' => 'string',
216+
'release' => 'string',
217+
'version' => 'string',
218+
'machine' => 'string',
219219
'domainname' => 'string',
220220
])]
221221
function posix_uname(): array|false {}
@@ -234,9 +234,9 @@ function posix_uname(): array|false {}
234234
*/
235235
#[Pure]
236236
#[ArrayShape([
237-
'ticks' => 'int',
238-
'utime' => 'int',
239-
'stime' => 'int',
237+
'ticks' => 'int',
238+
'utime' => 'int',
239+
'stime' => 'int',
240240
'cutime' => 'int',
241241
'cstime' => 'int'
242242
])]
@@ -524,13 +524,13 @@ function posix_getgrgid(int $group_id): array|false {}
524524
*/
525525
#[Pure]
526526
#[ArrayShape([
527-
"name" => "string",
527+
"name" => "string",
528528
"passwd" => "string",
529-
"uid" => "int",
530-
"gid" => "int",
531-
"gecos" => "string",
532-
"dir" => "string",
533-
"shell" => "string",
529+
"uid" => "int",
530+
"gid" => "int",
531+
"gecos" => "string",
532+
"dir" => "string",
533+
"shell" => "string",
534534
])]
535535
function posix_getpwnam(string $username): array|false {}
536536

@@ -609,13 +609,13 @@ function posix_getpwnam(string $username): array|false {}
609609
*/
610610
#[Pure]
611611
#[ArrayShape([
612-
'name' => 'string',
612+
'name' => 'string',
613613
'passwd' => 'string',
614-
'uid' => 'int',
615-
'gid' => 'int',
616-
'gecos' => 'string',
617-
'dir' => 'string',
618-
'shell' => 'string',
614+
'uid' => 'int',
615+
'gid' => 'int',
616+
'gecos' => 'string',
617+
'dir' => 'string',
618+
'shell' => 'string',
619619
])]
620620
function posix_getpwuid(int $user_id): array|false {}
621621

swoole/functions.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
declare(strict_types=1);
44

55
namespace Swoole\Coroutine {
6-
function run(callable $func, mixed ...$params): bool { }
7-
function go(callable $func, mixed ...$params): int|false { }
6+
function run(callable $func, mixed ...$params): bool {}
7+
function go(callable $func, mixed ...$params): int|false {}
88
}
99

1010
namespace {
@@ -418,5 +418,4 @@ function swoole_timer_clear(int $timer_id) {}
418418
* @see \Swoole\Timer::clearAll()
419419
*/
420420
function swoole_timer_clear_all() {}
421-
422-
}
421+
}

0 commit comments

Comments
 (0)