Skip to content

Commit 16f702a

Browse files
authored
Resolve #152: Fix deprecated string interpolation for PHP8.2 (#153)
1 parent 436d85d commit 16f702a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/example_response_server.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
$logger = new EchoLogger();
2828

2929
$loop = React\EventLoop\Loop::get();
30-
$socket = new SocketServer("${address}:{$port}", [], $loop);
30+
$socket = new SocketServer("{$address}:{$port}", [], $loop);
3131

3232
$socket->on('connection', function (React\Socket\ConnectionInterface $conn) use ($logger) {
3333
$logger->debug($conn->getRemoteAddress() . ": connected: ");

examples/rtu_usb_to_serial.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
'-ixon', // disable XON/XOFF flow control
4848
'-crtscts', // disable RTS/CTS handshaking
4949
]);
50-
$sttyResult = exec("stty -F ${device} ${sttyModes}");
50+
$sttyResult = exec("stty -F {$device} {$sttyModes}");
5151
if ($sttyResult === false) {
5252
echo 'stty command failed' . PHP_EOL;
5353
exit(1);

src/Composer/AddressSplitter.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ protected function shouldSplit(Address $currentAddress, int $currentQuantity, Ad
159159
if ($range->overlaps($from, $to)) {
160160
// when currentAddress directly overlaps unaddressable range we have to error out as there is no way to request from that range
161161
$size = $currentAddress->getSize();
162-
throw new InvalidArgumentException("address at ${from} with size ${size} overlaps unaddressable range");
162+
throw new InvalidArgumentException("address at {$from} with size {$size} overlaps unaddressable range");
163163
}
164164
if ($previousEnd != -1 && $range->overlaps($previousEnd, $from - 1)) {
165165
return true;

0 commit comments

Comments
 (0)