diff --git a/src/Controllers/ElementalAreaController.php b/src/Controllers/ElementalAreaController.php index d8c79a27..283b6b89 100644 --- a/src/Controllers/ElementalAreaController.php +++ b/src/Controllers/ElementalAreaController.php @@ -121,7 +121,7 @@ public function apiSaveForm(HTTPRequest $request) return null; } - $data = Convert::json2array($request->getBody()); + $data = json_decode($request->getBody(), true); if (empty($data)) { $this->jsonError(400); return null; @@ -166,7 +166,7 @@ public function apiSaveForm(HTTPRequest $request) return null; } - $body = Convert::raw2json([ + $body = json_encode([ 'status' => 'success', 'updated' => $updated, ]); diff --git a/src/Extensions/ElementalAreaUsedOnTableExtension.php b/src/Extensions/ElementalAreaUsedOnTableExtension.php index 1123b322..f8b504bc 100644 --- a/src/Extensions/ElementalAreaUsedOnTableExtension.php +++ b/src/Extensions/ElementalAreaUsedOnTableExtension.php @@ -36,7 +36,6 @@ public function updateUsageExcludedClasses(array &$excludedClasses) */ public function updateUsage(ArrayList &$usage, DataObject &$record) { - Deprecation::notice('4.5.0', 'Use updateUsageExcludedClasses() instead'); // noop } diff --git a/tests/ElementControllerTest.php b/tests/ElementControllerTest.php index 2ef2b0e8..809e4b20 100644 --- a/tests/ElementControllerTest.php +++ b/tests/ElementControllerTest.php @@ -13,8 +13,6 @@ class ElementControllerTest extends FunctionalTest { protected static $fixture_file = 'ElementControllerTest.yml'; - protected static $use_draft_site = true; - protected static $required_extensions = [ TestPage::class => [ ElementalPageExtension::class,