You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownew \BadMethodCallException('Invalid call to '.__METHOD__);
51
51
}
52
52
53
-
publicfunctionformat($format)
53
+
publicfunctionformat($format): string
54
54
{
55
55
return$this->input_string;
56
56
}
@@ -60,7 +60,7 @@ public function __toString()
60
60
return$this->input_string;
61
61
}
62
62
63
-
publicfunctionadd($interval)
63
+
publicfunctionadd($interval): \DateTimeImmutable
64
64
{
65
65
thrownew \RuntimeException(
66
66
'Cannot '.__METHOD__.' on invalid user date/time `'.$this->input_string.'`'
@@ -78,84 +78,84 @@ public function add($interval)
78
78
* @return static
79
79
* Returns the {@link http://www.php.net/manual/en/class.datetimeimmutable.php DateTimeImmutable} object for method chaining or <b>FALSE</b> on failure.
80
80
*/
81
-
publicfunctionmodify($modify)
81
+
publicfunctionmodify($modify): \DateTimeImmutable
82
82
{
83
83
thrownew \RuntimeException(
84
84
'Cannot '.__METHOD__.' on invalid user date/time `'.$this->input_string.'`'
0 commit comments