Skip to content

Commit

Permalink
Fix PHP 8.2 deprecation notices, fixes #27
Browse files Browse the repository at this point in the history
  • Loading branch information
teppokoivula committed May 30, 2024
1 parent 9fbdc18 commit 2b32f99
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.29.2] - 2024-05-30

### Fixed
- PHP 8.2 deprecation errors resulting from dynamic ViewData properties.

## [0.29.1] - 2024-03-05

### Fixed
Expand Down
4 changes: 2 additions & 2 deletions Wireframe.info.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"title": "Wireframe",
"summary": "Wireframe is an output framework for ProcessWire CMS/CMF.",
"version": "0.29.1",
"version": "0.29.2",
"author": "Teppo Koivula",
"href": "https://wireframe-framework.com",
"requires": [
Expand All @@ -10,4 +10,4 @@
],
"singular": true,
"autoload": false
}
}
2 changes: 1 addition & 1 deletion Wireframe.module.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* @method static string|Page|NullPage page($source, $args = []) Static getter (factory) method for Pages.
* @method static string|null partial(string $partial_name, array $args = []) Static getter (factory) method for Partials.
*
* @version 0.29.1
* @version 0.29.2
* @author Teppo Koivula <teppo@wireframe-framework.com>
* @license Mozilla Public License v2.0 https://mozilla.org/MPL/2.0/
*/
Expand Down
23 changes: 22 additions & 1 deletion lib/ViewData.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*
* @internal This class is only intended for use within the Wireframe internals.
*
* @version 0.1.0
* @version 0.1.1
* @author Teppo Koivula <teppo@wireframe-framework.com>
* @license Mozilla Public License v2.0 https://mozilla.org/MPL/2.0/
*/
Expand All @@ -22,6 +22,13 @@ final class ViewData {
*/
public $controller;

/**
* Component instance
*
* @var Component|null
*/
public $component;

/**
* View file name
*
Expand Down Expand Up @@ -50,6 +57,20 @@ final class ViewData {
*/
public $views_path;

/**
* Path to the layouts directory
*
* @var string
*/
public $layouts_path;

/**
* Rendering context
*
* @var string
*/
public $context;

/**
* The extension for view, layout, and partial files
*
Expand Down

0 comments on commit 2b32f99

Please sign in to comment.