The return type could not be reliably inferred; please add a @return annotation.
Our type inference engine in quite powerful, but sometimes the code does not
provide enough clues to go by. In these cases we request you to add a @return
annotation as described here.
Loading history...
11
{
12
return preg_replace('/\D/i', '', $input);
13
}
14
15
public static function parseDate($date, $from = 'Y-m-d', $to = 'obj')
The return type could not be reliably inferred; please add a @return annotation.
Our type inference engine in quite powerful, but sometimes the code does not
provide enough clues to go by. In these cases we request you to add a @return
annotation as described here.
Loading history...
16
{
17
if (!is_string($from)) {
18
throw new InvalidArgumentException('Formato de entrada inválido');
19
}
20
21
if (!is_string($to)) {
22
throw new InvalidArgumentException('Formato de saída inválido');
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@return
annotation as described here.