Skip to content

Commit 3eb9b0d

Browse files
committed
chore(deps): update dependencies to latest versions
1 parent 680bcba commit 3eb9b0d

26 files changed

+159
-182
lines changed

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@
1717
}
1818
],
1919
"require": {
20-
"php": "^8.1"
20+
"php": "^8.2"
2121
},
2222
"require-dev": {
2323
"ext-json": "*",
24-
"laravel/pint": "^1.15.1",
25-
"phpstan/phpstan": "^1.10.67",
26-
"phpunit/phpunit": "^9.6.19"
24+
"laravel/pint": "^1.21",
25+
"phpstan/phpstan": "^2.0",
26+
"phpunit/phpunit": "^11.0"
2727
},
2828
"autoload": {
2929
"psr-4": { "Humbug\\SelfUpdate\\": "src/" }

phpstan-baseline.neon

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
parameters:
2+
ignoreErrors:
3+
-
4+
message: '#^Method Humbug\\SelfUpdate\\Strategy\\Sha256Strategy\:\:getCurrentRemoteVersion\(\) never returns bool so it can be removed from the return type\.$#'
5+
identifier: return.unusedType
6+
count: 1
7+
path: src/Strategy/Sha256Strategy.php
8+
9+
-
10+
message: '#^Method Humbug\\SelfUpdate\\Strategy\\Sha512Strategy\:\:getCurrentRemoteVersion\(\) never returns bool so it can be removed from the return type\.$#'
11+
identifier: return.unusedType
12+
count: 1
13+
path: src/Strategy/Sha512Strategy.php
14+
15+
-
16+
message: '#^Call to function is_bool\(\) with bool will always evaluate to true\.$#'
17+
identifier: function.alreadyNarrowedType
18+
count: 1
19+
path: src/Updater.php

phpstan.neon.dist

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1+
includes:
2+
- phpstan-baseline.neon
3+
14
parameters:
25
level: 5
36
paths:
47
- src/
5-
6-
checkMissingIterableValueType: true
7-
checkGenericClassInNonGenericObjectType: false
8-
reportUnmatchedIgnoredErrors: true

phpunit.xml.dist

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,15 @@
33
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44
xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd"
55
colors="true"
6-
verbose="true"
76
bootstrap="tests/bootstrap.php">
87
<testsuites>
98
<testsuite name="Phar-Updater Test Suite">
109
<directory>tests</directory>
1110
</testsuite>
1211
</testsuites>
13-
<coverage processUncoveredFiles="true">
12+
<source>
1413
<include>
1514
<directory suffix=".php">src</directory>
1615
</include>
17-
</coverage>
16+
</source>
1817
</phpunit>

src/Exception/ExceptionInterface.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* Humbug.
45
*
@@ -10,6 +11,4 @@
1011

1112
namespace Humbug\SelfUpdate\Exception;
1213

13-
interface ExceptionInterface
14-
{
15-
}
14+
interface ExceptionInterface {}

src/Exception/FilesystemException.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* Humbug.
45
*
@@ -10,6 +11,4 @@
1011

1112
namespace Humbug\SelfUpdate\Exception;
1213

13-
class FilesystemException extends RuntimeException
14-
{
15-
}
14+
class FilesystemException extends RuntimeException {}

src/Exception/HttpRequestException.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* Humbug.
45
*
@@ -10,6 +11,4 @@
1011

1112
namespace Humbug\SelfUpdate\Exception;
1213

13-
class HttpRequestException extends RuntimeException
14-
{
15-
}
14+
class HttpRequestException extends RuntimeException {}

src/Exception/InvalidArgumentException.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* Humbug.
45
*
@@ -10,6 +11,4 @@
1011

1112
namespace Humbug\SelfUpdate\Exception;
1213

13-
class InvalidArgumentException extends \RuntimeException implements ExceptionInterface
14-
{
15-
}
14+
class InvalidArgumentException extends \RuntimeException implements ExceptionInterface {}

src/Exception/JsonParsingException.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* Humbug.
45
*
@@ -10,6 +11,4 @@
1011

1112
namespace Humbug\SelfUpdate\Exception;
1213

13-
class JsonParsingException extends RuntimeException
14-
{
15-
}
14+
class JsonParsingException extends RuntimeException {}

src/Exception/NoSignatureException.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* Humbug.
45
*
@@ -10,6 +11,4 @@
1011

1112
namespace Humbug\SelfUpdate\Exception;
1213

13-
class NoSignatureException extends RuntimeException
14-
{
15-
}
14+
class NoSignatureException extends RuntimeException {}

0 commit comments

Comments
 (0)