We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 610228b commit a63077dCopy full SHA for a63077d
src/Core/SerialNumberGenerator.php
@@ -1,6 +1,6 @@
1
<?php
2
/*
3
- Author: Irfa Ardiansyah <irfa.backend@protonmail.com>
+ Author: Irfa Ardiansyah <irfa.backend@protonmail.com>
4
*/
5
namespace Irfa\SerialNumber\Core;
6
@@ -17,9 +17,9 @@ function __construct($config_array=null)
17
18
protected function generatingSN()
19
{
20
- for($i=1;$i<=$this->segment;$i++)
+ for($i=1;$i<=intval($this->segment);$i++)
21
22
- $this->sn .= $this->sn()->formattedId($this->charset,$this->length).$this->seperator;
+ $this->sn .= $this->sn()->formattedId($this->charset,intval($this->length)).$this->seperator;
23
}
24
25
$sn = $this->sn;
0 commit comments