diff --git a/examples/example_response_server.php b/examples/example_response_server.php index 76b05a3..bd8031f 100644 --- a/examples/example_response_server.php +++ b/examples/example_response_server.php @@ -27,7 +27,7 @@ $logger = new EchoLogger(); $loop = React\EventLoop\Loop::get(); -$socket = new SocketServer("${address}:{$port}", [], $loop); +$socket = new SocketServer("{$address}:{$port}", [], $loop); $socket->on('connection', function (React\Socket\ConnectionInterface $conn) use ($logger) { $logger->debug($conn->getRemoteAddress() . ": connected: "); diff --git a/examples/rtu_usb_to_serial.php b/examples/rtu_usb_to_serial.php index cd74584..7f662a0 100644 --- a/examples/rtu_usb_to_serial.php +++ b/examples/rtu_usb_to_serial.php @@ -47,7 +47,7 @@ '-ixon', // disable XON/XOFF flow control '-crtscts', // disable RTS/CTS handshaking ]); - $sttyResult = exec("stty -F ${device} ${sttyModes}"); + $sttyResult = exec("stty -F {$device} {$sttyModes}"); if ($sttyResult === false) { echo 'stty command failed' . PHP_EOL; exit(1); diff --git a/src/Composer/AddressSplitter.php b/src/Composer/AddressSplitter.php index 72d5e6c..d83981f 100644 --- a/src/Composer/AddressSplitter.php +++ b/src/Composer/AddressSplitter.php @@ -159,7 +159,7 @@ protected function shouldSplit(Address $currentAddress, int $currentQuantity, Ad if ($range->overlaps($from, $to)) { // when currentAddress directly overlaps unaddressable range we have to error out as there is no way to request from that range $size = $currentAddress->getSize(); - throw new InvalidArgumentException("address at ${from} with size ${size} overlaps unaddressable range"); + throw new InvalidArgumentException("address at {$from} with size {$size} overlaps unaddressable range"); } if ($previousEnd != -1 && $range->overlaps($previousEnd, $from - 1)) { return true;