From 5f685a81bf126008732b9131b8a3b9ef9abf8ef6 Mon Sep 17 00:00:00 2001 From: Tomas Kudelka Date: Mon, 16 Nov 2020 12:32:48 +0000 Subject: [PATCH] fix --- src/Scream.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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));