Skip to content

Commit 53686a7

Browse files
committed
add type hints to FeatureRequesterBase methods
1 parent 37466e2 commit 53686a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/LaunchDarkly/Impl/Integrations/FeatureRequesterBase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ protected function __construct($baseUri, $sdkKey, $options)
4646
* @param $key flag or segment key
4747
* @return string|null the stored JSON data, or null if not found
4848
*/
49-
protected function readItemString($namespace, $key)
49+
protected function readItemString(string $namespace, string $key): ?string
5050
{
5151
return null;
5252
}
@@ -57,7 +57,7 @@ protected function readItemString($namespace, $key)
5757
* @param $namespace "features" or "segments"
5858
* @return array|null array of stored JSON strings
5959
*/
60-
protected function readItemStringList($namespace)
60+
protected function readItemStringList(string $namespace): ?array
6161
{
6262
return array();
6363
}

0 commit comments

Comments
 (0)