Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Exception extends RuntimeException
/**
* @param array<string|int> $args
*/
public function __construct(string $message, array $args = [], Throwable $previous = null)
public function __construct(string $message, array $args = [], ?Throwable $previous = null)
{
$message = $args ? vsprintf($message, $args) : $message;

Expand Down
2 changes: 1 addition & 1 deletion src/Hydration/HydrationException.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class HydrationException extends Exception
/**
* @param array<string|int> $args
*/
public function __construct(string $message, array $args = [], Throwable $previous = null)
public function __construct(string $message, array $args = [], ?Throwable $previous = null)
{
parent::__construct("FromArray Error: {$message}", $args, $previous);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Kit.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public static function divider(?string $blockId = null): Blocks\Divider
}

public static function file(
string $externalId = null,
?string $externalId = null,
?string $source = 'remote',
?string $blockId = null,
): Blocks\File {
Expand Down