Skip to content

Commit

Permalink
Remove dynamic properties for all generators
Browse files Browse the repository at this point in the history
This is to avoid errors in PHP8.x.
  • Loading branch information
snim2 committed Sep 18, 2023
1 parent cb49dfb commit 5f083e7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions generators/app/generate.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ class AppGenerator extends \Dxw\Whippet\WhippetGenerator {
use \Dxw\Whippet\Modules\Helpers\WhippetHelpers;

protected $wordpress_template_zip = 'https://github.com/dxw/wordpress-template/archive/main.zip';
private $target_dir;
private $options = array();

function __construct($options) {
$this->options = $options;
Expand Down
2 changes: 2 additions & 0 deletions generators/plugin/generate.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ class PluginGenerator extends \Dxw\Whippet\WhippetGenerator {
protected $plugin_template_zip = 'https://github.com/dxw/wordpress-plugin-template/archive/main.zip';

private $unique_temp_id;
private $target_dir;
private $options = array();

function __construct($options) {
$this->options = $options;
Expand Down
2 changes: 2 additions & 0 deletions generators/theme/generate.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ class ThemeGenerator extends \Dxw\Whippet\WhippetGenerator {
protected $wordpress_template_zip = 'https://github.com/dxw/wordpress-template/archive/main.zip';

private $unique_temp_id;
private $target_dir;
private $options = array();

function __construct($options) {
$this->options = $options;
Expand Down

0 comments on commit 5f083e7

Please sign in to comment.