Skip to content

Commit e0d930b

Browse files
committed
update dev deps
1 parent 04863a4 commit e0d930b

27 files changed

Lines changed: 64 additions & 60 deletions

.docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ARG USER_GID=${USER_UID}
1111
RUN groupadd --gid ${USER_GID} ${USERNAME} && \
1212
useradd -s /bin/bash --uid ${USER_UID} --gid ${USERNAME} -m ${USERNAME}
1313

14-
COPY --from=composer:2.2.7 /usr/bin/composer /usr/bin/composer
14+
COPY --from=composer:2.7.9 /usr/bin/composer /usr/bin/composer
1515

1616
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive && \
1717
bash /tmp/library-scripts/dev.sh "${USERNAME}"

.github/workflows/documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ jobs:
8181
run: echo "$GITHUB_CONTEXT"; env
8282

8383
- name: Setup Pages
84-
uses: actions/configure-pages@v1
84+
uses: actions/configure-pages@v5
8585

8686
- name: Deploy to GitHub Pages
8787
id: deployment

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,17 @@
2424
"php": "^8.1"
2525
},
2626
"require-dev": {
27-
"phpunit/phpunit": "^9.5",
27+
"phpunit/phpunit": "^10.3",
2828
"phpspec/prophecy-phpunit": "^2.0",
2929
"squizlabs/php_codesniffer": "^3.6",
3030
"slevomat/coding-standard": "^8.0",
3131
"phpstan/phpstan": "^1.4",
3232
"phpstan/extension-installer": "^1.1",
3333
"phpstan/phpstan-strict-rules": "^1.1",
3434
"phpstan/phpstan-phpunit": "^1.0",
35-
"vimeo/psalm": "^4.22",
36-
"symfony/finder": "^6.1",
37-
"symfony/console": "^6.1",
35+
"vimeo/psalm": "^5.0",
36+
"symfony/finder": "^6.0|^7.0",
37+
"symfony/console": "^6.0|^7.0",
3838
"texthtml/doctest": "^0.2"
3939
},
4040
"config": {

phpcs.xml.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@
8989
</rule>
9090

9191
<rule ref="SlevomatCodingStandard.Classes.ClassStructure">
92+
<exclude-pattern>/tests/</exclude-pattern>
9293
<properties>
9394
<property name="groups" type="array">
9495
<element value="uses"/>

psalm.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
findUnusedBaselineEntry="true"
99
disableSuppressAll="true"
1010
findUnusedPsalmSuppress="true"
11+
findUnusedCode="false"
1112
ensureArrayStringOffsetsExist="true"
1213
ensureArrayIntOffsetsExist="true"
1314
sealAllMethods="true"

src/Option/None.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ public function mapOrElse(callable $callback, callable $default): mixed
141141
* @template U
142142
* @param Option<U> $option
143143
* @return $this
144-
* @psalm-suppress ImplementedReturnTypeMismatch
145144
*/
146145
public function zip(Option $option): self
147146
{

src/Option/Some.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,6 @@ public function zip(Option $option): Option
157157
return Option\some([$this->value, $value]);
158158
}
159159

160-
/** @psalm-suppress InvalidReturnStatement */
161160
return Option\none();
162161
}
163162

src/functions/option.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,9 @@ function tryOf(
152152
* @template U
153153
* @param Option<Option<U>> $option
154154
* @return Option<U>
155-
* @psalm-suppress InvalidReturnType
156155
*/
157156
function flatten(Option $option): Option
158157
{
159-
/** @psalm-suppress InvalidReturnStatement */
160158
return $option instanceof Option\None
161159
? $option
162160
/** @phpstan-ignore missingType.checkedException */

tests/Assert.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use PHPUnit\Framework\Assert as PHPUnitAssert;
66
use PHPUnit\Framework\ExpectationFailedException;
7-
use SebastianBergmann\RecursionContext\InvalidArgumentException;
87
use TH\Maybe\Result;
98

109
final class Assert extends PHPUnitAssert
@@ -13,7 +12,7 @@ final class Assert extends PHPUnitAssert
1312
* @template T
1413
* @template E
1514
* @param Result<T,E> $result
16-
* @throws InvalidArgumentException|ExpectationFailedException
15+
* @throws ExpectationFailedException
1716
*/
1817
public static function assertResultUsed(Result $result): void
1918
{
@@ -28,7 +27,7 @@ public static function assertResultUsed(Result $result): void
2827
* @template T
2928
* @template E
3029
* @param Result<T,E> $result
31-
* @throws InvalidArgumentException|ExpectationFailedException
30+
* @throws ExpectationFailedException
3231
*/
3332
public static function assertResultNotUsed(Result $result): void
3433
{

tests/Provider/Options.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ trait Options
1313
* expected:Option<string>
1414
* }>
1515
*/
16-
public function andMatrix(): iterable
16+
public static function andMatrix(): iterable
1717
{
1818
/** @var Option<string> $none */
1919
$none = Option\none();
@@ -52,7 +52,7 @@ public function andMatrix(): iterable
5252
* expected:Option<string>
5353
* }>
5454
*/
55-
public function orMatrix(): iterable
55+
public static function orMatrix(): iterable
5656
{
5757
/** @var Option<string> $none */
5858
$none = Option\none();
@@ -91,7 +91,7 @@ public function orMatrix(): iterable
9191
* expected:Option<string>
9292
* }>
9393
*/
94-
public function xorMatrix(): iterable
94+
public static function xorMatrix(): iterable
9595
{
9696
/** @var Option<string> $none */
9797
$none = Option\none();
@@ -126,7 +126,7 @@ public function xorMatrix(): iterable
126126
/**
127127
* @return iterable<array{0:Option<mixed>, 1:mixed, 2:mixed, 3?:bool}>
128128
*/
129-
public function fromValueMatrix(): iterable
129+
public static function fromValueMatrix(): iterable
130130
{
131131
$o = (object)[];
132132

0 commit comments

Comments
 (0)