Skip to content

Commit ec24391

Browse files
author
Thomas Kerin
committed
ScriptFactory:: use protected property so subclasses can override, and expose getOpCodes
1 parent 7657b69 commit ec24391

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/Script/ScriptFactory.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,13 @@ class ScriptFactory
2222
* @var OutputScriptFactory
2323
*/
2424
private static $outputScriptFactory = null;
25-
private static $opcodes = null;
2625

27-
private static function getOpCodes(): Opcodes
26+
/**
27+
* @var Opcodes|null
28+
*/
29+
protected static $opcodes = null;
30+
31+
public static function getOpCodes(): Opcodes
2832
{
2933
if (null === static::$opcodes) {
3034
static::$opcodes = new Opcodes();

0 commit comments

Comments
 (0)