Skip to content

Commit 686d0cb

Browse files
committed
fix __set() return type
1 parent e595c73 commit 686d0cb

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/SEOManager.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -373,13 +373,9 @@ public function __get(string $key): string|null
373373
return $this->get(Str::snake($key, '.'));
374374
}
375375

376-
/**
377-
* Handle magic set.
378-
*
379-
* @return string|array|null
380-
*/
381-
public function __set(string $key, string $value)
376+
/** Handle magic set. */
377+
public function __set(string $key, string $value): void
382378
{
383-
return $this->set(Str::snake($key, '.'), $value);
379+
$this->set(Str::snake($key, '.'), $value);
384380
}
385381
}

0 commit comments

Comments
 (0)