Skip to content

Commit

Permalink
Merge pull request #12 from thorewi/fix-method-return-type-hints
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
enumag authored Dec 9, 2020
2 parents c0579f9 + 5f685a8 commit 52dcae6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Scream.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function &__get(string $name)
* @param mixed $value property value
* @throws \Kdyby\StrictObjects\MemberAccessException
*/
public function __set(string $name, $value)
public function __set(string $name, $value): void
{
$class = get_class($this);
$hint = Suggester::suggestProperty($class, $name);
Expand Down Expand Up @@ -114,7 +114,7 @@ public function __isset(string $name): bool
* @param string $name property name
* @throws \Kdyby\StrictObjects\MemberAccessException
*/
public function __unset(string $name)
public function __unset(string $name): void
{
$class = get_class($this);
throw new \Kdyby\StrictObjects\MemberAccessException(sprintf('Cannot unset the property %s::$%s.', $class, $name));
Expand Down

0 comments on commit 52dcae6

Please sign in to comment.