diff --git a/src/Scream.php b/src/Scream.php index 24e9aff..ace2e44 100644 --- a/src/Scream.php +++ b/src/Scream.php @@ -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); @@ -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));