Skip to content

Commit c2b77ca

Browse files
committed
Formatting
1 parent 799a486 commit c2b77ca

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/framework/src/Support/Models/DateString.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
use DateTime;
88
use Stringable;
9+
use BadMethodCallException;
910

1011
/**
1112
* Parse a date string and create normalized formats.
@@ -53,6 +54,6 @@ public function __call(string $method, array $arguments): mixed
5354
return $this->dateTimeObject->$method(...$arguments);
5455
}
5556

56-
throw new \BadMethodCallException("Method {$method} does not exist on DateTime.");
57+
throw new BadMethodCallException("Method {$method} does not exist on the DateTime object.");
5758
}
5859
}

packages/framework/tests/Unit/DateStringTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function testItCanForwardSetTimeMethodToDateTimeObject()
7575
public function testCallingUndefinedMethodThrowsException()
7676
{
7777
$this->expectException(\BadMethodCallException::class);
78-
$this->expectExceptionMessage('Method nonExistentMethod does not exist on DateTime');
78+
$this->expectExceptionMessage('Method nonExistentMethod does not exist on the DateTime object.');
7979

8080
$dateString = new DateString('2020-01-01 UTC');
8181
$dateString->nonExistentMethod();

0 commit comments

Comments
 (0)