Skip to content

Commit 7ee076c

Browse files
authored
Merge pull request #19 from Innmind/update-dependencies
Update dependencies
2 parents 8b504f9 + 6b0587f commit 7ee076c

59 files changed

Lines changed: 297 additions & 250 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
strategy:
99
matrix:
1010
os: [ubuntu-latest]
11-
php-version: ['8.2', '8.3', '8.4']
11+
php-version: ['8.4', '8.5']
1212
dependencies: ['lowest', 'highest']
1313
name: 'BlackBox (${{ matrix.os }}, ${{ matrix.php-version }}, ${{ matrix.dependencies }})'
1414
steps:
@@ -35,7 +35,7 @@ jobs:
3535
strategy:
3636
matrix:
3737
os: [ubuntu-latest]
38-
php-version: ['8.2', '8.3', '8.4']
38+
php-version: ['8.4', '8.5']
3939
dependencies: ['lowest', 'highest']
4040
name: 'Coverage (${{ matrix.os }}, ${{ matrix.php-version }}, ${{ matrix.dependencies }})'
4141
steps:
@@ -66,5 +66,3 @@ jobs:
6666
uses: innmind/github-workflows/.github/workflows/psalm-matrix.yml@main
6767
cs:
6868
uses: innmind/github-workflows/.github/workflows/cs.yml@main
69-
with:
70-
php-version: '8.2'

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## [Unreleased]
4+
5+
### Changed
6+
7+
- Requires PHP `8.4`
8+
- Requires `innmind/foundation:~2.1`
9+
310
## 6.0.0 - 2025-08-08
411

512
### Changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ use Innmind\AMQP\{
3838
Model\Exchange\Type,
3939
};
4040
use Innmind\IO\Sockets\Internet\Transport;
41-
use Innmind\TimeContinuum\Period;
41+
use Innmind\Time\Period;
4242
use Innmind\OperatingSystem\Factory as OSFactory;
4343
use Innmind\Url\Url;
4444
use Innmind\Immutable\Str;

benchmark/client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
Transport\Connection,
99
};
1010
use Innmind\IO\Sockets\Internet\Transport;
11-
use Innmind\TimeContinuum\Period;
11+
use Innmind\Time\Period;
1212
use Innmind\Url\Url;
1313
use Innmind\OperatingSystem\Factory as OSFactory;
1414

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
"issues": "http://github.com/Innmind/AMQP/issues"
1616
},
1717
"require": {
18-
"php": "~8.2",
19-
"innmind/foundation": "^1.7.1",
18+
"php": "~8.4",
19+
"innmind/foundation": "~2.1",
2020
"ramsey/uuid": "~4.0"
2121
},
2222
"autoload": {
@@ -31,7 +31,7 @@
3131
},
3232
"require-dev": {
3333
"psr/log": "~3.0",
34-
"innmind/static-analysis": "^1.2.1",
34+
"innmind/static-analysis": "~1.3",
3535
"innmind/black-box": "~6.5",
3636
"innmind/coding-standard": "~2.0"
3737
},

docs/Listen to signals.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ $client
1414
->run(null)
1515
->match(
1616
static fn() => null, // not reachable in this case
17-
static fn($failure) => throw new \RuntimeException($failure::class),
17+
static fn($failure) => $failure,
1818
);
1919
```
2020

fixtures/forever-consumer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
};
1111
use Innmind\OperatingSystem\Factory as OSFactory;
1212
use Innmind\IO\Sockets\Internet\Transport;
13-
use Innmind\TimeContinuum\Period;
13+
use Innmind\Time\Period;
1414
use Innmind\Url\Url;
1515

1616
$os = OSFactory::build();

src/Client.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,12 @@ private function openChannel(): Attempt
124124
static fn($protocol) => $protocol->channel()->open($channel),
125125
Method::channelOpenOk,
126126
)
127-
->map(fn() => $this->signals->match(
127+
->flatMap(fn() => $this->signals->match(
128128
static fn($process) => $connection->listenSignals(
129129
$process->signals(),
130130
$channel,
131131
),
132-
static fn() => null,
132+
static fn() => Attempt::result(SideEffect::identity),
133133
))
134134
->map(static fn() => [$connection, $channel])
135135
->mapError(Failure::as(Failure::toOpenChannel())),

src/Factory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Innmind\OperatingSystem\OperatingSystem;
77
use Innmind\IO\Sockets\Internet\Transport as Socket;
88
use Innmind\Url\Url;
9-
use Innmind\TimeContinuum\Period;
9+
use Innmind\Time\Period;
1010

1111
final class Factory
1212
{

src/Model/Basic/Message.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
UserId,
1616
AppId,
1717
};
18-
use Innmind\TimeContinuum\{
19-
PointInTime,
18+
use Innmind\Time\{
19+
Point,
2020
Period,
2121
};
2222
use Innmind\Filesystem\File\Content;
@@ -51,7 +51,7 @@ final class Message
5151
private Maybe $expiration;
5252
/** @var Maybe<Id> */
5353
private Maybe $id;
54-
/** @var Maybe<PointInTime> */
54+
/** @var Maybe<Point> */
5555
private Maybe $timestamp;
5656
/** @var Maybe<Type> */
5757
private Maybe $type;
@@ -92,7 +92,7 @@ private function __construct(Sequence $chunks, int $length)
9292
$this->expiration = Maybe::nothing();
9393
/** @var Maybe<Id> */
9494
$this->id = Maybe::nothing();
95-
/** @var Maybe<PointInTime> */
95+
/** @var Maybe<Point> */
9696
$this->timestamp = Maybe::nothing();
9797
/** @var Maybe<Type> */
9898
$this->type = Maybe::nothing();
@@ -304,7 +304,7 @@ public function withId(Id $id): self
304304
}
305305

306306
/**
307-
* @return Maybe<PointInTime>
307+
* @return Maybe<Point>
308308
*/
309309
#[\NoDiscard]
310310
public function timestamp(): Maybe
@@ -313,7 +313,7 @@ public function timestamp(): Maybe
313313
}
314314

315315
#[\NoDiscard]
316-
public function withTimestamp(PointInTime $timestamp): self
316+
public function withTimestamp(Point $timestamp): self
317317
{
318318
$self = clone $this;
319319
$self->timestamp = Maybe::just($timestamp);
@@ -380,7 +380,7 @@ public function body(): Str
380380
{
381381
return $this
382382
->chunks
383-
->fold(new Concat)
383+
->fold(Concat::monoid)
384384
->toEncoding(Str\Encoding::ascii);
385385
}
386386

0 commit comments

Comments
 (0)