Skip to content

Commit 28f08de

Browse files
committed
ScriptCheckTestBase: compare strlen to 0, not empty string??
1 parent 942bcc9 commit 28f08de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Script/ScriptCheckTestBase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public function calcScriptFromString(array $mapOpNames, string $string): ScriptI
128128
$item = 'OP_CHECKSEQUENCEVERIFY';
129129
}
130130

131-
if (strlen($item) == '') {
131+
if (strlen($item) == 0) {
132132
} else if (preg_match("/^[0-9]*$/", $item) || substr($item, 0, 1) === "-" && preg_match("/^[0-9]*$/", substr($item, 1))) {
133133
$builder->int((int) $item);
134134
} else if (substr($item, 0, 2) === "0x") {

0 commit comments

Comments
 (0)