Skip to content

Commit f2dc043

Browse files
committed
Fix wrong return type in Config class (fixes #9)
1 parent 42d2912 commit f2dc043

4 files changed

Lines changed: 11 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [0.13.1] - 2020-08-31
11+
12+
### Fixed
13+
- Config class getPaths() method had wrong return type specified, rendering module config screen unusable.
14+
1015
## [0.13.0] - 2020-08-28
1116

1217
### Added

Wireframe.info.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"title": "Wireframe",
33
"summary": "Wireframe is an output framework for ProcessWire CMS/CMF.",
4-
"version": "0.13.0",
4+
"version": "0.13.1",
55
"author": "Teppo Koivula",
66
"href": "https://wireframe-framework.com",
77
"requires": [

Wireframe.module.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* @method static string|Page|NullPage page($source, $args = []) Static getter (factory) method for Pages.
1515
* @method static string|null partial(string $partial_name, array $args = []) Static getter (factory) method for Partials.
1616
*
17-
* @version 0.13.0
17+
* @version 0.13.1
1818
* @author Teppo Koivula <teppo@wireframe-framework.com>
1919
* @license Mozilla Public License v2.0 https://mozilla.org/MPL/2.0/
2020
*/

lib/Config.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
/**
1111
* Configuration helper for the Wireframe module
1212
*
13-
* @version 0.2.1
13+
* @version 0.2.2
1414
* @author Teppo Koivula <teppo@wireframe-framework.com>
1515
* @license Mozilla Public License v2.0 https://mozilla.org/MPL/2.0/
1616
*/
@@ -159,11 +159,11 @@ protected function processCreateDirectoriesField(InputfieldCheckboxes $field): I
159159
/**
160160
* Get paths for the create directories feature
161161
*
162-
* @return array
162+
* @return object
163163
*/
164-
protected function getPaths(): array {
164+
protected function getPaths(): object {
165165

166-
// get paths array from Wireframe
166+
// get paths object from Wireframe
167167
$paths = $this->wireframe->paths;
168168

169169
// append relative URLs

0 commit comments

Comments
 (0)