Skip to content

Commit

Permalink
DEP PHP Support in CMS5
Browse files Browse the repository at this point in the history
  • Loading branch information
Sabina Talipova committed Dec 20, 2022
1 parent 3019eeb commit 495ebfb
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 495ebfb

Please sign in to comment.