Skip to content

Commit 2b9bc4d

Browse files
authored
Merge pull request #286 from silverstripeltd/pulls/cms6-support
2 parents a1d60a3 + b64174b commit 2b9bc4d

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
],
2525
"require": {
2626
"php": "^8.3",
27-
"silverstripe/vendor-plugin": "^2",
27+
"silverstripe/vendor-plugin": "^3",
2828
"silverstripe/framework": "^6",
2929
"silverstripe/cms": "^6",
3030
"silverstripe/reports": "^6",

src/Extensions/ContentReviewCMSExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ protected function getSchemaRequested()
149149
* @param array $extraData Any extra data to be merged with the schema response
150150
* @return HTTPResponse
151151
*/
152-
protected function getSchemaResponse($schemaID, $form = null, ValidationResult $errors = null, $extraData = [])
152+
protected function getSchemaResponse($schemaID, $form = null, ?ValidationResult $errors = null, $extraData = [])
153153
{
154154
$parts = $this->owner->getRequest()->getHeader(FormSchema::SCHEMA_HEADER);
155155
$data = $this->owner

src/Extensions/SiteTreeContentReview.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ protected function updateCMSActions(FieldList $actions)
196196
*
197197
* @return null|DBDate
198198
*/
199-
public function getReviewDate(SiteTree $page = null)
199+
public function getReviewDate(?SiteTree $page = null)
200200
{
201201
if ($page === null) {
202202
$page = $this->owner;
@@ -527,7 +527,7 @@ public function advanceReviewDate()
527527
*
528528
* @return bool
529529
*/
530-
public function canBeReviewedBy(Member $member = null)
530+
public function canBeReviewedBy(?Member $member = null)
531531
{
532532
if (!$this->owner->obj('NextReviewDate')->exists()) {
533533
return false;

tests/behat/features/content-reviews.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@ Feature: Set up reviews
5353
And I press "Mark as reviewed"
5454
And I wait for 1 second
5555
Then I should see "Review successfully added"
56-
When I click on the ".close" element
56+
When I click on the ".btn-close" element
5757
And I press the "Save" button
5858
Then I should see "My review"

0 commit comments

Comments
 (0)