summaryrefslogtreecommitdiff
path: root/server/vendor/php-opencloud/common/src/Common/ArrayAccessTrait.php
diff options
context:
space:
mode:
Diffstat (limited to 'server/vendor/php-opencloud/common/src/Common/ArrayAccessTrait.php')
-rw-r--r--server/vendor/php-opencloud/common/src/Common/ArrayAccessTrait.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/server/vendor/php-opencloud/common/src/Common/ArrayAccessTrait.php b/server/vendor/php-opencloud/common/src/Common/ArrayAccessTrait.php
index 72bcfce..a9e3aba 100644
--- a/server/vendor/php-opencloud/common/src/Common/ArrayAccessTrait.php
+++ b/server/vendor/php-opencloud/common/src/Common/ArrayAccessTrait.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
namespace OpenCloud\Common;
@@ -38,7 +38,7 @@ trait ArrayAccessTrait
*
* @return bool
*/
- public function offsetExists($offset)
+ public function offsetExists(string $offset): bool
{
return isset($this->internalState[$offset]);
}
@@ -48,7 +48,7 @@ trait ArrayAccessTrait
*
* @param string $offset
*/
- public function offsetUnset($offset)
+ public function offsetUnset(string $offset)
{
unset($this->internalState[$offset]);
}
@@ -60,7 +60,7 @@ trait ArrayAccessTrait
*
* @return mixed|null
*/
- public function offsetGet($offset)
+ public function offsetGet(string $offset)
{
return $this->offsetExists($offset) ? $this->internalState[$offset] : null;
}