aboutsummaryrefslogtreecommitdiff
path: root/devel/phabricator/files/patch-src_infrastructure_markup_blockrule_PhutilRemarkupListBlockRule.php
blob: adc982b01449d3b2c3f7029ecdd38e720bb4ba68 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- src/infrastructure/markup/blockrule/PhutilRemarkupListBlockRule.php.orig	2021-12-18 19:11:09 UTC
+++ src/infrastructure/markup/blockrule/PhutilRemarkupListBlockRule.php
@@ -446,7 +446,7 @@ final class PhutilRemarkupListBlockRule extends Phutil
       }
 
       $start_attr = null;
-      if (ctype_digit($starts_at) && $starts_at > 1) {
+      if ((is_int($starts_at) || ctype_digit($starts_at)) && $starts_at > 1) {
         $start_attr = hsprintf(' start="%d"', $starts_at);
       }