Skip to content

Commit e025f61

Browse files
[FSSDK-8940] Correct return type hints (#265)
* Add mixed return type to jsonserialize * Add test for 8.2 * Rollback 8.2 tests and add suggested comments * Fix comment * Update copyright
1 parent 34bebf0 commit e025f61

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/Optimizely/OptimizelyUserContext.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* Copyright 2021-2022, Optimizely
3+
* Copyright 2021-2023, Optimizely
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.
@@ -147,6 +147,9 @@ public function getOptimizely()
147147
return $this->optimizelyClient;
148148
}
149149

150+
/**
151+
* @return mixed
152+
*/
150153
#[\ReturnTypeWillChange]
151154
public function jsonSerialize()
152155
{

src/Optimizely/UserProfile/UserProfileServiceInterface.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* Copyright 2017, Optimizely Inc, and Contributors
3+
* Copyright 2017, 2023, Optimizely Inc, and Contributors
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.
@@ -23,7 +23,7 @@ interface UserProfileServiceInterface
2323
*
2424
* @param $userId string The ID of the user whose profile will be retrieved.
2525
*
26-
* @return userProfile array The user profile.
26+
* @return array The user profile.
2727
*/
2828
public function lookup($userId);
2929

0 commit comments

Comments
 (0)