Skip to content

Commit

Permalink
Fix typings
Browse files Browse the repository at this point in the history
  • Loading branch information
kylekatarnls committed May 27, 2021
1 parent 4ce48f4 commit 534ac51
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/Carbon/CarbonInterval.php
Original file line number Diff line number Diff line change
Expand Up @@ -667,9 +667,9 @@ public function clone(): self
* @param string $method magic method name called
* @param array $parameters parameters list
*
* @return static|null
* @return static|mixed|null
*/
public static function __callStatic(string $method, array $parameters): ?self
public static function __callStatic(string $method, array $parameters)
{
try {
$interval = new static(0);
Expand Down
8 changes: 4 additions & 4 deletions src/Carbon/Traits/Options.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,16 +180,16 @@ trait Options
/**
* Format to use on string cast.
*
* @var string|null
* @var string|callable|null
*/
protected ?string $localToStringFormat = null;
protected $localToStringFormat = null;

/**
* Format to use on JSON serialization.
*
* @var string|null
* @var string|callable|null
*/
protected ?string $localSerializer = null;
protected $localSerializer = null;

/**
* Instance-specific macros.
Expand Down
4 changes: 2 additions & 2 deletions tests/Carbon/CreateStrictTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function testCreateStrictThrowsExceptionForSecondLowerThanZero()
{
$this->expectException(OutOfRangeException::class);
$this->expectExceptionMessage(
'second must be between 0 and 99, -1 given'
'second must be between 0 and 99, -1 given',
);

Carbon::createStrict(null, null, null, null, null, -1);
Expand All @@ -32,7 +32,7 @@ public function testCreateStrictThrowsExceptionForMonthOverRange()
{
$this->expectException(OutOfRangeException::class);
$this->expectExceptionMessage(
'month must be between 0 and 99, 9001 given'
'month must be between 0 and 99, 9001 given',
);

Carbon::createStrict(null, 9001);
Expand Down

0 comments on commit 534ac51

Please sign in to comment.