Skip to content

Commit 5deffaf

Browse files
authored
Merge pull request #23 from getshifter/devin/1747385375-fix-php82-dynamic-properties
Fix PHP 8.2 deprecated warnings for dynamic properties
2 parents c91039a + 340dc8c commit 5deffaf

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

classes/class.admin-bar.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<?php
22

33
class Admin_Bar {
4+
/** @var \WP_Admin_Bar */
5+
protected $wp_admin_bar;
46
public function __construct($bar) {
57
$this->wp_admin_bar = $bar;
68
}

classes/class.page-content.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
namespace Shifter_Webhook;
33

44
class Page_Content {
5+
/** @var array */
6+
protected $options;
57
public function __construct( $options ) {
68
$this->options = $options;
79
}
@@ -134,4 +136,4 @@ public function shifter_webhook_settings_page() {
134136
</div>
135137
<?
136138
}
137-
}
139+
}

0 commit comments

Comments
 (0)