{
if (preg_match($this->scalarRegex, $token->word)) {
if (!in_array($postToken, $this->timeSignifiers)) {
- return (int)$token->word;
+ return $token->word;
}
}
}
public function scanForDays($token, $postToken)
{
if (preg_match($this->dayRegex, $token->word)) {
- if ((int)$token->word <= 31 && !in_array($postToken, $this->timeSignifiers)) {
- return (int)$token->word;
+ if ($token->word <= 31 && !in_array($postToken, $this->timeSignifiers)) {
+ return $token->word;
}
}
}
public function scanForMonths($token, $postToken)
{
if (preg_match($this->monthRegex, $token->word)) {
- if ((int)$token->word <= 12 && !in_array($postToken, $this->timeSignifiers)) {
- return (int)$token->word;
+ if ($token->word <= 12 && !in_array($postToken, $this->timeSignifiers)) {
+ return $token->word;
}
}
}
{
if (preg_match($this->yearRegex, $token->word)) {
if (!in_array($postToken, $this->timeSignifiers)) {
- return (int)$token->word;
+ return $token->word;
}
}
}