Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Remove type hints for php5.6 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
marcguyer committed Mar 14, 2019
1 parent eaf726c commit dc1b5c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/DateTimeFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ public function setFormat($format)
* Set whether or not to throw an exception in the event that DateTime
* cannot parse the input value
*
* @param bool throwInvalidDateException
* @param bool $throwInvalidDateException
* @return self
*/
public function setThrowInvalidDateException(bool $throwInvalidDateException): self
public function setThrowInvalidDateException($throwInvalidDateException)
{
$this->throwInvalidDateException = $throwInvalidDateException;
$this->throwInvalidDateException = (bool) $throwInvalidDateException;

return $this;
}
Expand Down

0 comments on commit dc1b5c0

Please sign in to comment.