Skip to content

Commit 2da23b9

Browse files
Refactor modify method return type to use self instead of DateTime|false (#129)
1 parent b08a9d0 commit 2da23b9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/DateTime.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ public function setTimezone(\DateTimeZone $timezone): DateTime
201201
return parent::setTimezone($timezone);
202202
}
203203

204-
public function modify(string $modify = ''): DateTime|false
204+
public function modify(string $modify = ''): self
205205
{
206206
$this->flag_dirty();
207207

0 commit comments

Comments
 (0)