Skip to content

Commit f9337ac

Browse files
authored
fix: Strings interpolation for PHP 8.2 (#115)
* fix: Strings interpolation for PHP 8.2 * docs(changelog): file updated
1 parent e115279 commit f9337ac

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog][keepachangelog] and this project adheres to [Semantic Versioning][semver].
66

7+
## v5.11.1
8+
9+
### Fixed
10+
11+
- Strings interpolation for PHP 8.2 [#114]
12+
13+
[#114]:https://github.com/spiral/roadrunner-laravel/issues/114
14+
715
## v5.11.0
816

917
### Added

src/Console/Commands/WorkerFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ public function make(string $mode = self::MODE_AUTO, ...$args): WorkerInterface
5656
}
5757

5858
throw new \RuntimeException(
59-
\sprintf("Class [${class}] should implements [%s] interface", WorkerInterface::class)
59+
\sprintf("Class [{$class}] should implements [%s] interface", WorkerInterface::class)
6060
);
6161
}
6262

63-
throw new \InvalidArgumentException("Unsupported worker mode: ${mode}");
63+
throw new \InvalidArgumentException("Unsupported worker mode: {$mode}");
6464
}
6565

6666
/**

src/Dumper/Exceptions/DumperException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ protected function generateView(string $content): string
118118
<title>Dumper::dd()</title>
119119
</head>
120120
<body>
121-
${content}
121+
{$content}
122122
</body>
123123
</html>
124124
EOT;

0 commit comments

Comments
 (0)