Skip to content

Commit 908760c

Browse files
authored
Merge pull request #8 from inceptphp/0.1
provisions for php9
2 parents 98dcbbc + 04acac1 commit 908760c

4 files changed

Lines changed: 14 additions & 13 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ composer.phar
66
/logs/
77
*.db
88
.phpunit.result.cache
9+
composer.lock

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
],
88
"license": "LGPL-2.1-or-later",
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",
16-
"phpugph/handlebars": "~1.0.0"
15+
"phpugph/components": "1.0.5",
16+
"phpugph/handlebars": "1.0.3"
1717
},
1818
"autoload": {
1919
"psr-4": {

src/Package/Config/ConfigPackage.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function __construct()
5252
*/
5353
public function exists(string $file, ...$path): bool
5454
{
55-
if (!is_dir($this->path)) {
55+
if (!is_dir((string) $this->path)) {
5656
throw ConfigException::forFolderNotSet();
5757
}
5858

@@ -80,7 +80,7 @@ public function exists(string $file, ...$path): bool
8080
*/
8181
public function get(string $file, ...$path)
8282
{
83-
if (!is_dir($this->path)) {
83+
if (!is_dir((string) $this->path)) {
8484
throw ConfigException::forFolderNotSet();
8585
}
8686

@@ -139,7 +139,7 @@ public function purge()
139139
*/
140140
public function set(string $file, ...$path): ConfigPackage
141141
{
142-
if (!is_dir($this->path)) {
142+
if (!is_dir((string) $this->path)) {
143143
throw ConfigException::forFolderNotSet();
144144
}
145145

test/Fieldset.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,11 @@ public function testGetFolder()
149149
public function testGetForm()
150150
{
151151
$form = $this->object->getForm();
152-
$this->assertTrue(!!trim($form['foo_title']));
153-
$this->assertTrue(!trim($form['foo_formula']));
154-
$this->assertTrue(!trim($form['foo_active']));
155-
$this->assertTrue(!trim($form['foo_created']));
156-
$this->assertTrue(!trim($form['foo_updated']));
152+
$this->assertTrue(!!trim((string) $form['foo_title']));
153+
$this->assertTrue(!trim((string) $form['foo_formula']));
154+
$this->assertTrue(!trim((string) $form['foo_active']));
155+
$this->assertTrue(!trim((string) $form['foo_created']));
156+
$this->assertTrue(!trim((string) $form['foo_updated']));
157157
}
158158

159159
/**

0 commit comments

Comments
 (0)