Skip to content

Commit b23215c

Browse files
authored
update php support to 8.2 (#10)
* update php support to 8.2 * update depreciated pattern * remove php 7.4
1 parent 7075435 commit b23215c

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"type": "library",
55
"license": "OSL-3.0",
66
"require": {
7-
"php": "~7.4.0||~8.1.0",
7+
"php": "~8.1.0||~8.2.0",
88
"mustache/mustache": "^2.12",
99
"xantios/mimey": "^2.2",
1010
"symfony/yaml": "^2.3 || ^3.3 || ^4.0 || ^5.0",

src/Controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function __construct(
4343

4444
foreach (self::STANDARD_FIELDS as $key) {
4545
if (!$this->definition->has($key)) {
46-
throw new \RuntimeException("Definition YAML is missing required key: ${key}");
46+
throw new \RuntimeException("Definition YAML is missing required key: {$key}");
4747
}
4848
}
4949

src/Definition.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public static function fromYamlFile(string $filePath): self
4444
$data = Yaml::parseFile($filePath);
4545

4646
if (!\is_array($data)) {
47-
throw new \InvalidArgumentException("File ${filePath} could not be parsed as YAML.");
47+
throw new \InvalidArgumentException("File {$filePath} could not be parsed as YAML.");
4848
}
4949

5050
$instance = new static($data);

src/Resolver/Url.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function resolve($definition)
7878
$currentPathname = $uri->getPath();
7979
if ($pathname[0] !== '/') {
8080
if ($currentPathname === null) {
81-
$pathname = "/${pathname}";
81+
$pathname = "/{$pathname}";
8282
} elseif ($currentPathname[\strlen($currentPathname) - 1] === '/') {
8383
$pathname = $currentPathname . $pathname;
8484
} else {

src/Template/TemplateFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@ public static function get(string $basePath, ?string $engine): TemplateInterface
3737
}
3838
}
3939

40-
throw new \InvalidArgumentException("${engine} could not be found or does not implement TemplateInterface");
40+
throw new \InvalidArgumentException("{$engine} could not be found or does not implement TemplateInterface");
4141
}
4242
}

0 commit comments

Comments
 (0)