Skip to content

Commit 7abe5c8

Browse files
committed
chore: update dev dependencies
1 parent 5b2610c commit 7abe5c8

File tree

7 files changed

+8
-15
lines changed

7 files changed

+8
-15
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
},
2222
"require-dev": {
2323
"laravel/pint": "^1.15.2",
24-
"pestphp/pest": "^2.34",
25-
"pestphp/pest-plugin-type-coverage": "^2.8",
24+
"pestphp/pest": "^3.8.2",
25+
"pestphp/pest-plugin-type-coverage": "^3.5.0",
2626
"rector/rector": "^1.0.4"
2727
},
2828
"autoload": {

rector.php

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

55
use Rector\Config\RectorConfig;
6-
use Rector\Php83\Rector\ClassMethod\AddOverrideAttributeToOverriddenMethodsRector;
76

87
return RectorConfig::configure()
98
->withPaths([
109
__DIR__.'/src',
1110
__DIR__.'/tests',
1211
])
13-
->withSkip([
14-
AddOverrideAttributeToOverriddenMethodsRector::class,
15-
])
12+
->withSkip([])
1613
->withPreparedSets(
1714
deadCode: true,
1815
codeQuality: true,

src/Services/ColorityManager.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ final class ColorityManager
1818

1919
private static ColorityManager $instance;
2020

21-
private function __construct()
22-
{
23-
}
21+
private function __construct() {}
2422

2523
public function __clone()
2624
{

src/Support/Parsers/HexValueColorParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function parse(string $valueColor): string
3333
$results = [];
3434
preg_match(self::getRegex(), $parsedValueColor, $results);
3535

36-
if (count($results) === 0) {
36+
if ($results === []) {
3737
throw new InvalidArgumentException('Unknown or invalid value color');
3838
}
3939

src/Support/Parsers/HslValueColorParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function parse(string $valueColor): string
3030
$results = [];
3131
preg_match(self::getRegex(), $parsedValueColor, $results);
3232

33-
if (count($results) === 0) {
33+
if ($results === []) {
3434
throw new InvalidArgumentException('Unknown or invalid value color: '.$parsedValueColor);
3535
}
3636

src/Support/Parsers/RgbValueColorParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function parse(string $valueColor): string
3030
$results = [];
3131
preg_match(self::getRegex(), $parsedValueColor, $results);
3232

33-
if (count($results) === 0) {
33+
if ($results === []) {
3434
throw new InvalidArgumentException('Unknown or invalid value color: '.$parsedValueColor);
3535
}
3636

src/Support/ValueColorParserResolver.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ public function __construct(private array $colorClasses = [
2222
HexColor::class,
2323
HslColor::class,
2424
RgbColor::class,
25-
])
26-
{
27-
}
25+
]) {}
2826

2927
/**
3028
* Parses the value color

0 commit comments

Comments
 (0)