mirror of
https://github.com/JeroenED/libpairtwo.git
synced 2024-11-25 07:47:42 +01:00
DateTime instead \DateTime
This commit is contained in:
parent
9b12fd301b
commit
d9ecb62d0d
@ -613,7 +613,7 @@ class Swar4 implements ReaderInterface
|
|||||||
* @param string $string
|
* @param string $string
|
||||||
* @return DateTime
|
* @return DateTime
|
||||||
*/
|
*/
|
||||||
public function convertStringToDate(string $string): \DateTime
|
public function convertStringToDate(string $string): DateTime
|
||||||
{
|
{
|
||||||
if (strlen($string) == 10) {
|
if (strlen($string) == 10) {
|
||||||
return DateTime::createFromFormat('d/m/Y', $string);
|
return DateTime::createFromFormat('d/m/Y', $string);
|
||||||
|
Loading…
Reference in New Issue
Block a user