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/Contracts/MetaTags/MetaInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function setMetaFrom(object $object): self;
*
* @param positive-int|null $maxLength
*/
public function setTitle(string $title, int $maxLength = null): self;
public function setTitle(string $title, ?int $maxLength = null): self;

/**
* Prepend title part to default title
Expand Down
2 changes: 1 addition & 1 deletion src/MetaTags/Concerns/ManageTitle.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

trait ManageTitle
{
public function setTitle(?string $title, int $maxLength = null): self
public function setTitle(?string $title, ?int $maxLength = null): self
{
$this->getTitle()->setTitle($this->cleanString($title), $maxLength);

Expand Down
2 changes: 1 addition & 1 deletion src/Packages/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function register(PackageInterface $package): self
return $this;
}

public function create(string $name, Closure $callback = null): self
public function create(string $name, ?Closure $callback = null): self
{
$this->register($package = new Package($name));

Expand Down
Loading