Skip to content

Commit

Permalink
fix __set() return type
Browse files Browse the repository at this point in the history
  • Loading branch information
stancl committed Mar 12, 2024
1 parent e595c73 commit 686d0cb
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/SEOManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -373,13 +373,9 @@ public function __get(string $key): string|null
return $this->get(Str::snake($key, '.'));
}

/**
* Handle magic set.
*
* @return string|array|null
*/
public function __set(string $key, string $value)
/** Handle magic set. */
public function __set(string $key, string $value): void
{
return $this->set(Str::snake($key, '.'), $value);
$this->set(Str::snake($key, '.'), $value);
}
}

0 comments on commit 686d0cb

Please sign in to comment.