Skip to content

Commit 4623101

Browse files
committed
Fix code for PHP 5.5.
1 parent ccf85e7 commit 4623101

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/php/Gomoob/Filter/DateTimeParserInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,5 @@ interface DateTimeParserInterface
4141
*
4242
* @throws \InvalidArgumentException if the provided string has not the format expected by the parser.
4343
*/
44-
public function parse(string $str): \DateTime;
44+
public function parse(/* string */ $str) /* : \DateTime */;
4545
}

src/main/php/Gomoob/Filter/Parser/FormatDateTimeParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class FormatDateTimeParser implements DateTimeParserInterface
6565
/**
6666
* {@inheritDoc}
6767
*/
68-
public function parse(string $str): \DateTime
68+
public function parse(/* string */ $str) /* : \DateTime */
6969
{
7070
$date = \DateTime::createFromFormat($this->format, $str);
7171

0 commit comments

Comments
 (0)