Skip to content

Commit

Permalink
add return typehint
Browse files Browse the repository at this point in the history
  • Loading branch information
dkrasnorutsky committed Jun 14, 2020
1 parent fbb78a6 commit fadb779
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/LaminasServiceManager/ArrayAccessContainerAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function get($id)
*
* @return bool
*/
public function has($id)
public function has($id): bool
{
return $this->serviceManager->has($id);
}
Expand All @@ -59,7 +59,7 @@ public function has($id)
*
* @return bool
*/
public function offsetExists($offset)
public function offsetExists($offset): bool
{
return $this->serviceManager->has($offset);
}
Expand All @@ -82,9 +82,9 @@ public function offsetGet($offset)
* @param mixed $offset
* @param mixed $value
*/
public function offsetSet($offset, $value)
public function offsetSet($offset, $value): void
{
return $this->serviceManager->setService($offset, $value);
$this->serviceManager->setService($offset, $value);
}

/**
Expand All @@ -93,7 +93,7 @@ public function offsetSet($offset, $value)
* @deprecated
* @param mixed $offset
*/
public function offsetUnset($offset)
public function offsetUnset($offset): void
{
// noop
}
Expand Down

0 comments on commit fadb779

Please sign in to comment.