Skip to content

Commit 5bbdb38

Browse files
committed
update dev dependencies
1 parent 1ed025e commit 5bbdb38

File tree

5 files changed

+14
-24
lines changed

5 files changed

+14
-24
lines changed

composer.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,17 @@
2222
"spatie/laravel-package-tools": "^1.13.0"
2323
},
2424
"require-dev": {
25-
"driftingly/rector-laravel": "^0.17.0",
26-
"laravel/pint": "^1.7",
27-
"nunomaduro/collision": "^7.3.3",
28-
"nunomaduro/larastan": "^2.5.1",
29-
"orchestra/testbench": "^8.0.11",
30-
"phpstan/extension-installer": "^1.2",
25+
"driftingly/rector-laravel": "^0.21.0",
26+
"laravel/pint": "^1.10.4",
27+
"nunomaduro/collision": "^7.7.0",
28+
"nunomaduro/larastan": "^2.6.3",
29+
"orchestra/testbench": "^8.5.10",
30+
"phpstan/extension-installer": "^1.3.1",
3131
"phpstan/phpstan-deprecation-rules": "^1.1.3",
32-
"phpstan/phpstan-phpunit": "^1.3.10",
33-
"phpstan/phpstan-strict-rules": "^1.5",
34-
"phpunit/phpunit": "^10.0.18",
35-
"rector/rector": "^0.15.23"
32+
"phpstan/phpstan-phpunit": "^1.3.13",
33+
"phpstan/phpstan-strict-rules": "^1.5.1",
34+
"phpunit/phpunit": "^10.2.5",
35+
"rector/rector": "^0.17.5"
3636
},
3737
"autoload": {
3838
"psr-4": {

phpstan-baseline.neon

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
parameters:
22
ignoreErrors:
3-
-
4-
message: "#^Only booleans are allowed in a negated boolean, array\\|bool\\|string\\|null given\\.$#"
5-
count: 1
6-
path: src/Commands/DeleteCommand.php
7-
83
-
94
message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#"
105
count: 1
@@ -15,11 +10,6 @@ parameters:
1510
count: 1
1611
path: src/Commands/IndexCommand.php
1712

18-
-
19-
message: "#^Parameter \\#2 \\$haystack of function in_array expects array, array\\|string\\|true given\\.$#"
20-
count: 1
21-
path: src/Commands/IndexCommand.php
22-
2313
-
2414
message: "#^Unable to resolve the template type TKey in call to function collect$#"
2515
count: 1

src/Client/ElasticaClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
class ElasticaClient
1111
{
12-
private Client $client;
12+
private readonly Client $client;
1313

1414
private static ?bool $listenToEvents = null;
1515

src/Commands/IndexCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function handle(): int
3737

3838
$lock = $indexConfig->indexingLock();
3939

40-
if ((bool) $this->option('force')) {
40+
if ($this->option('force')) {
4141
$lock->forceRelease();
4242
}
4343

@@ -49,7 +49,7 @@ public function handle(): int
4949

5050
Bus::batch([
5151
[
52-
new SetupIndex($indexConfig, (bool) $this->option('delete')),
52+
new SetupIndex($indexConfig, $this->option('delete')),
5353
new PopulateIndex($indexConfig),
5454
],
5555
])

src/Exception/BaseException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
abstract class BaseException extends RuntimeException
1111
{
12-
public function __construct(string $message, int $code = 0, ?Throwable $previous = null)
12+
public function __construct(string $message, int $code = 0, Throwable $previous = null)
1313
{
1414
parent::__construct($message, $code, $previous);
1515
}

0 commit comments

Comments
 (0)