It seems like you are loosely comparing preg_match('/^(\\d{4})-(...{2})Z$/', $this->input) of type integer to the boolean true. If you are specifically checking for non-zero, consider using something more explicit like > 0 or !== 0 instead.
Loading history...
24
// Check that PHP can build a date object from the input.