Skip to content

Commit

Permalink
Change deprecated function
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Mota committed Apr 8, 2019
1 parent d5d1054 commit be33b7b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ActiveRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class ActiveRecord extends BaseActiveRecord
/**
* Returns the LDAP connection used by this AR class.
*
* @return Connection the LDAP connection used by this AR class.
* @return Connection|null the LDAP connection used by this AR class.
*/
public static function getDb()
{
Expand Down
4 changes: 2 additions & 2 deletions src/DataReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ public function current()
$cacheKey = [__CLASS__, $entry['dn']];
$result = $cache->get($cacheKey);
if (is_array($result) && isset($result[0])) {
Yii::trace('Query result served from cache', __METHOD__);
Yii::debug('Query result served from cache', __METHOD__);
return $result[0];
}
}
Expand All @@ -260,7 +260,7 @@ public function current()

if (isset($cache, $cacheKey, $info)) {
$cache->set($cacheKey, [$entry], $info[1], $info[2]);
Yii::trace('Saved query result in cache', __METHOD__);
Yii::debug('Saved query result in cache', __METHOD__);
}

return $entry;
Expand Down

0 comments on commit be33b7b

Please sign in to comment.