Skip to content

Commit 955a80f

Browse files
committed
fixed php8.2 deprecations on clarkson-core
1 parent 98fe894 commit 955a80f

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

clarkson-core.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@
2121
*/
2222
class Clarkson_Core {
2323

24+
/**
25+
* define $autoloader.
26+
*
27+
* @var Autoloader
28+
*/
29+
public $autoloader;
30+
2431
/**
2532
* Initializes all neccessery objects. Is automatically called on 'init'.
2633
*

wordpress-objects/Clarkson_Object.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@ class Clarkson_Object implements \JsonSerializable {
3131
*/
3232
protected static $posts;
3333

34+
/**
35+
* define $_content.
36+
*
37+
* @var string
38+
*/
39+
public $_content;
40+
3441
/**
3542
* Clarkson_Object constructor.
3643
*
@@ -644,6 +651,7 @@ public function has_term( $term ) {
644651
*
645652
* We can't just return $this->_post, because these values will only return raw unfiltered data.
646653
*/
654+
#[\ReturnTypeWillChange]
647655
public function jsonSerialize() {
648656
$data['id'] = $this->get_id();
649657
$data['link'] = $this->get_permalink();

0 commit comments

Comments
 (0)