Skip to content

Commit f9f9708

Browse files
committed
efficiency and test improvements
Minor adjustments to the ScripturNumArray String APIs. Should become the basis for v2.1.0
1 parent a51693a commit f9f9708

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/ScripturNumArray.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,11 @@ public function count(): int
265265
*/
266266
public function __toString(): string
267267
{
268-
return $this->toString();
268+
try {
269+
return $this->toString();
270+
} catch (ScripturNumException $e) {
271+
return '';
272+
}
269273
}
270274

271275
/**

0 commit comments

Comments
 (0)