File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -273,7 +273,7 @@ private function exchangeCode() {
273
273
*/
274
274
public function getUser () {
275
275
// Ensure we have the user info
276
- if ($ this ->user === false ) {
276
+ if ($ this ->user === null ) {
277
277
$ this ->exchangeCode ();
278
278
}
279
279
if (!is_array ($ this ->user )) {
@@ -352,7 +352,7 @@ public function setAccessToken($access_token) {
352
352
* @return string
353
353
*/
354
354
final public function getAccessToken () {
355
- if ($ this ->access_token === false ) {
355
+ if ($ this ->access_token === null ) {
356
356
$ this ->exchangeCode ();
357
357
}
358
358
return $ this ->access_token ;
@@ -381,7 +381,7 @@ public function setIdToken($id_token) {
381
381
* @return string
382
382
*/
383
383
final public function getIdToken () {
384
- if ($ this ->id_token === false ) {
384
+ if ($ this ->id_token === null ) {
385
385
$ this ->exchangeCode ();
386
386
}
387
387
return $ this ->id_token ;
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ class EmptyStore
23
23
public function set ($ key , $ value ) {
24
24
}
25
25
26
- public function get ($ key , $ default =false ) {
26
+ public function get ($ key , $ default =null ) {
27
27
return $ default ;
28
28
}
29
29
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ public function set($key, $value) {
65
65
*
66
66
* @return mixed
67
67
*/
68
- public function get ($ key , $ default =false ) {
68
+ public function get ($ key , $ default =null ) {
69
69
$ key_name = $ this ->getSessionKeyName ($ key );
70
70
71
71
if (isset ($ _SESSION [$ key_name ])) {
You can’t perform that action at this time.
0 commit comments