Skip to content

Commit

Permalink
Merge pull request #77 from creative-commoners/pulls/3/upgrade-cms5
Browse files Browse the repository at this point in the history
DEP PHP Support in CMS5
  • Loading branch information
emteknetnz authored Jan 9, 2023
2 parents 3019eeb + 495ebfb commit f3a24f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
}
],
"require": {
"php": "^7.4 || ^8.0",
"silverstripe/framework": "^4.10"
"php": "^8.1",
"silverstripe/framework": "^5"
},
"require-dev": {
"phpunit/phpunit": "^9.5",
"squizlabs/php_codesniffer": "^3.0",
"silverstripe/versioned": "^1"
"squizlabs/php_codesniffer": "^3",
"silverstripe/versioned": "^2"
},
"extra": [],
"autoload": {
Expand Down
2 changes: 1 addition & 1 deletion src/Store/DatabaseStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function read($session_id)
$result = DB::query($query);

if ($result && $result->numRecords()) {
$data = $result->first();
$data = $result->record();
$decoded = static::binaryDataJsonDecode($data['Data']);
return is_null($decoded) ? $data['Data'] : $decoded;
}
Expand Down

0 comments on commit f3a24f5

Please sign in to comment.