Skip to content

Commit 180984a

Browse files
authored
Merge pull request #8 from phpugph/main
php 8.1 compatibility
2 parents 47af089 + d0ca4c9 commit 180984a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
],
88
"license": "MIT",
99
"require-dev": {
10-
"phpunit/phpunit": "~9.5.4",
11-
"squizlabs/php_codesniffer": "~3.5.8",
12-
"php-coveralls/php-coveralls": "~2.4.3"
10+
"phpunit/phpunit": "9.5.21",
11+
"squizlabs/php_codesniffer": "3.7.1",
12+
"php-coveralls/php-coveralls": "2.5.2"
1313
},
1414
"require": {
15-
"phpugph/components": "~1.0.0"
15+
"phpugph/components": "1.0.5"
1616
},
1717
"autoload": {
1818
"psr-4": {

src/HandlebarsHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,13 @@ public function compile($template)
7979

8080
$file = $this->cache . '/' . $this->prefix . $name . '.php';
8181
// @codeCoverageIgnoreStart
82-
if (is_dir($this->cache) && file_exists($file)) {
82+
if (is_dir((string) $this->cache) && file_exists($file)) {
8383
$callback = include($file);
8484
} else {
8585
$code = $this->resolve(HandlebarsCompiler::class, $this, $template)
8686
->compile();
8787

88-
if (is_dir($this->cache)) {
88+
if (is_dir((string) $this->cache)) {
8989
file_put_contents($file, $code);
9090
}
9191

0 commit comments

Comments
 (0)