Skip to content

Commit 0598352

Browse files
authored
Merge pull request #7 from BrianHenryIE/fix-dynamic-property-deprecation
Fix PHP 8.2 dynamic property deprecation
2 parents 31b7401 + b1a02f4 commit 0598352

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/XPub.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,26 @@ private static function bip2version(string $bip, string $prefix): string {
103103
}
104104
}
105105

106+
/**
107+
* @var string $version 'xpub'|'tpub'|'ypub'|'upub'|'zpub'|'vpub'.
108+
*/
109+
public $version;
110+
111+
/** @var int $depth */
112+
public $depth;
113+
114+
/** @var string $parent_fingerprint */
115+
public $parent_fingerprint;
116+
117+
/** @var int $index */
118+
public $index;
119+
120+
/** @var string $c */
121+
public $c;
122+
123+
/** @var string $K */
124+
public $K;
125+
106126
public function __construct(
107127
string $version,
108128
int $depth,

0 commit comments

Comments
 (0)