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 packages/framework/src/Facades/Features.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public function toArray(): array
}

/** @internal This method is not covered by the backward compatibility promise. */
public static function mock(string $feature, bool $enabled = null): void
public static function mock(string $feature, ?bool $enabled = null): void
{
if ($enabled === true) {
// Add the feature if it doesn't already exist.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public static function hasNumericalPrefix(string $identifier): bool
/**
* Splits a numbered identifier into its numerical prefix and the rest of the identifier.
*
* @return array{integer, string}
* @return array{int, string}
*/
public static function splitNumericPrefix(string $identifier): array
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class HeadingRenderer implements NodeRendererInterface
protected array $headingRegistry = [];

/** @param ?class-string<\Hyde\Pages\Concerns\HydePage> $pageClass */
public function __construct(string $pageClass = null, array &$headingRegistry = [])
public function __construct(?string $pageClass = null, array &$headingRegistry = [])
{
$this->pageClass = $pageClass;
$this->headingRegistry = &$headingRegistry;
Expand Down