Skip to content

Commit 2b32f99

Browse files
committed
Fix PHP 8.2 deprecation notices, fixes #27
1 parent 9fbdc18 commit 2b32f99

File tree

4 files changed

+30
-4
lines changed

4 files changed

+30
-4
lines changed

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.29.2] - 2024-05-30
11+
12+
### Fixed
13+
- PHP 8.2 deprecation errors resulting from dynamic ViewData properties.
14+
1015
## [0.29.1] - 2024-03-05
1116

1217
### Fixed

Wireframe.info.json

Lines changed: 2 additions & 2 deletions
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.29.1",
4+
"version": "0.29.2",
55
"author": "Teppo Koivula",
66
"href": "https://wireframe-framework.com",
77
"requires": [
@@ -10,4 +10,4 @@
1010
],
1111
"singular": true,
1212
"autoload": false
13-
}
13+
}

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.29.1
17+
* @version 0.29.2
1818
* @author Teppo Koivula <teppo@wireframe-framework.com>
1919
* @license Mozilla Public License v2.0 https://mozilla.org/MPL/2.0/
2020
*/

lib/ViewData.php

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
* @internal This class is only intended for use within the Wireframe internals.
1111
*
12-
* @version 0.1.0
12+
* @version 0.1.1
1313
* @author Teppo Koivula <teppo@wireframe-framework.com>
1414
* @license Mozilla Public License v2.0 https://mozilla.org/MPL/2.0/
1515
*/
@@ -22,6 +22,13 @@ final class ViewData {
2222
*/
2323
public $controller;
2424

25+
/**
26+
* Component instance
27+
*
28+
* @var Component|null
29+
*/
30+
public $component;
31+
2532
/**
2633
* View file name
2734
*
@@ -50,6 +57,20 @@ final class ViewData {
5057
*/
5158
public $views_path;
5259

60+
/**
61+
* Path to the layouts directory
62+
*
63+
* @var string
64+
*/
65+
public $layouts_path;
66+
67+
/**
68+
* Rendering context
69+
*
70+
* @var string
71+
*/
72+
public $context;
73+
5374
/**
5475
* The extension for view, layout, and partial files
5576
*

0 commit comments

Comments
 (0)