Skip to content

Commit fa8f249

Browse files
committed
updated components to 8.2. Fixed type errors and deprecation notices 12h
1 parent b505732 commit fa8f249

34 files changed

+87
-80
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ composer.phar
55
/vendor/
66
/logs/
77
*.db
8+
.phpunit.cache
89
.phpunit.result.cache
910
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-
"php-coveralls/php-coveralls": "2.5.2",
11-
"phpunit/phpunit": "9.5.21",
12-
"squizlabs/php_codesniffer": "3.7.1"
10+
"php-coveralls/php-coveralls": "2.6.0",
11+
"phpunit/phpunit": "10.3.3",
12+
"squizlabs/php_codesniffer": "3.7.2"
1313
},
1414
"require": {
15-
"phpugph/components": "1.0.7",
16-
"phpugph/handlebars": "1.0.5"
15+
"phpugph/components": "1.0.8",
16+
"phpugph/handlebars": "1.0.6"
1717
},
1818
"autoload": {
1919
"psr-4": {

phpunit.xml

Lines changed: 39 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,49 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit
3-
backupGlobals="false"
4-
backupStaticAttributes="false"
5-
colors="true"
6-
convertErrorsToExceptions="true"
7-
convertNoticesToExceptions="true"
8-
convertWarningsToExceptions="true"
9-
processIsolation="false"
10-
stopOnFailure="false"
11-
bootstrap="test/bootstrap.php"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
backupGlobals="false"
5+
colors="true"
6+
processIsolation="false"
7+
stopOnFailure="false"
8+
bootstrap="test/bootstrap.php"
9+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.3/phpunit.xsd"
10+
cacheDirectory=".phpunit.cache"
11+
backupStaticProperties="false"
1212
>
1313
<testsuites>
1414
<testsuite name="Framework Test Suite">
15-
<file>test/Framework.php</file>
16-
<file>test/Decorator.php</file>
17-
<file>test/Schema.php</file>
18-
<file>test/Fieldset.php</file>
19-
<file>test/Fieldset/Validator.php</file>
20-
<file>test/Field/AbstractField.php</file>
21-
<file>test/Field/Active.php</file>
22-
<file>test/Field/Created.php</file>
23-
<file>test/Field/FieldRegistry.php</file>
24-
<file>test/Field/None.php</file>
25-
<file>test/Field/Updated.php</file>
26-
<file>test/Format/AbstractFormatter.php</file>
27-
<file>test/Format/FormatterRegistry.php</file>
28-
<file>test/Format/Hide.php</file>
29-
<file>test/Format/None.php</file>
30-
<file>test/Schema/Validator.php</file>
31-
<file>test/Validation/AbstractValidator.php</file>
32-
<file>test/Validation/Required.php</file>
33-
<file>test/Validation/Unique.php</file>
34-
<file>test/Validation/ValidatorRegistry.php</file>
35-
<file>test/SystemException.php</file>
36-
<file>test/Package/Config/ConfigException.php</file>
37-
<file>test/Package/Config/ConfigPackage.php</file>
38-
<file>test/Package/Event/EventPackage.php</file>
39-
<file>test/Package/Host/HostPackage.php</file>
40-
<file>test/Package/Http/HttpPackage.php</file>
41-
<file>test/Package/PDO/PDOPackage.php</file>
15+
<file>test/FrameworkTest.php</file>
16+
<file>test/DecoratorTest.php</file>
17+
<file>test/SchemaTest.php</file>
18+
<file>test/FieldsetTest.php</file>
19+
<file>test/Fieldset/ValidatorTest.php</file>
20+
<file>test/Field/AbstractFieldTest.php</file>
21+
<file>test/Field/ActiveTest.php</file>
22+
<file>test/Field/CreatedTest.php</file>
23+
<file>test/Field/FieldRegistryTest.php</file>
24+
<file>test/Field/NoneTest.php</file>
25+
<file>test/Field/UpdatedTest.php</file>
26+
<file>test/Format/AbstractFormatterTest.php</file>
27+
<file>test/Format/FormatterRegistryTest.php</file>
28+
<file>test/Format/HideTest.php</file>
29+
<file>test/Format/NoneTest.php</file>
30+
<file>test/Schema/ValidatorTest.php</file>
31+
<file>test/Validation/AbstractValidatorTest.php</file>
32+
<file>test/Validation/RequiredTest.php</file>
33+
<file>test/Validation/UniqueTest.php</file>
34+
<file>test/Validation/ValidatorRegistryTest.php</file>
35+
<file>test/SystemExceptionTest.php</file>
36+
<file>test/Package/Config/ConfigExceptionTest.php</file>
37+
<file>test/Package/Config/ConfigPackageTest.php</file>
38+
<file>test/Package/Event/EventPackageTest.php</file>
39+
<file>test/Package/Host/HostPackageTest.php</file>
40+
<file>test/Package/Http/HttpPackageTest.php</file>
41+
<file>test/Package/PDO/PDOPackageTest.php</file>
4242
</testsuite>
4343
</testsuites>
4444

45-
<coverage processUncoveredFiles="false" pathCoverage="true">
45+
<coverage pathCoverage="true"/>
46+
<source>
4647
<include>
4748
<directory suffix=".php">./src</directory>
4849
</include>
@@ -65,5 +66,5 @@
6566
<file>src/Package/Language/.incept.php</file>
6667
<file>src/Package/Timezone/.incept.php</file>
6768
</exclude>
68-
</coverage>
69+
</source>
6970
</phpunit>

src/Field/AbstractField.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,11 @@ abstract class AbstractField
124124
*/
125125
protected $name = null;
126126

127+
/**
128+
* @var mixed $value The value of the field
129+
*/
130+
protected $value = null;
131+
127132
/**
128133
* @var array $attributes Hash of attributes to consider when rendering
129134
*/

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
/**
1212
* Generated by PHPUnit_SkeletonGenerator on 2016-07-27 at 13:49:45.
1313
*/
14-
class Framework_Decorator_Test extends TestCase
14+
class DecoratorTest extends TestCase
1515
{
1616
/**
1717
* @var Decorator
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
/**
1616
* Generated by PHPUnit_SkeletonGenerator on 2016-07-27 at 13:49:45.
1717
*/
18-
class Incept_Field_AbstractField_Test extends TestCase
18+
class AbstractFieldTest extends TestCase
1919
{
2020
/**
2121
* @var FieldStub
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
/**
1414
* Generated by PHPUnit_SkeletonGenerator on 2016-07-27 at 13:49:45.
1515
*/
16-
class Incept_Field_Active_Test extends TestCase
16+
class ActiveTest extends TestCase
1717
{
1818
/**
1919
* @var Active
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
/**
1414
* Generated by PHPUnit_SkeletonGenerator on 2016-07-27 at 13:49:45.
1515
*/
16-
class Incept_Field_Created_Test extends TestCase
16+
class CreatedTest extends TestCase
1717
{
1818
/**
1919
* @var Created
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
/**
1414
* Generated by PHPUnit_SkeletonGenerator on 2016-07-27 at 13:49:45.
1515
*/
16-
class Incept_Field_FieldRegistry_Test extends TestCase
16+
class FieldRegistryTest extends TestCase
1717
{
1818
/**
1919
* @covers Incept\Framework\Field\FieldRegistry::getField

0 commit comments

Comments
 (0)