diff --git a/api/RestfulService.php b/api/RestfulService.php index c2af25d76..eb946b4d8 100644 --- a/api/RestfulService.php +++ b/api/RestfulService.php @@ -585,7 +585,7 @@ class RestfulService_Response extends SS_HTTPResponse { * @param string */ public function setCachedBody($content) { - Deprecation::notice('3.1', 'Setting the response body is now deprecated, set the cached request instead'); + Deprecation::notice('3.2', 'Setting the response body is now deprecated, set the cached request instead'); if (!$this->cachedResponse) { $this->cachedResponse = new RestfulService_Response($content); } diff --git a/core/Object.php b/core/Object.php index a97152288..2975e55ce 100755 --- a/core/Object.php +++ b/core/Object.php @@ -424,7 +424,7 @@ abstract class Object { $class = get_called_class(); if(func_num_args() > 1) { - Deprecation::notice('3.1.0', "Object::has_extension() deprecated. Call has_extension() on the class"); + Deprecation::notice('3.2.0', "Object::has_extension() deprecated. Call has_extension() on the class"); $class = func_get_arg(0); $requiredExtension = func_get_arg(1); } @@ -457,7 +457,7 @@ abstract class Object { $class = get_called_class(); if(func_num_args() > 1) { - Deprecation::notice('3.1.0', "Object::add_extension() deprecated. Call add_extension() on the class"); + Deprecation::notice('3.2.0', "Object::add_extension() deprecated. Call add_extension() on the class"); $class = func_get_arg(0); $extension = func_get_arg(1); } @@ -518,7 +518,7 @@ abstract class Object { $class = get_called_class(); if(func_num_args() > 1) { - Deprecation::notice('3.1.0', "Object::remove_extension() deprecated. Call remove_extension() on the class"); + Deprecation::notice('3.2.0', "Object::remove_extension() deprecated. Call remove_extension() on the class"); $class = func_get_arg(0); $extension = func_get_arg(1); } @@ -584,7 +584,7 @@ abstract class Object { $sources[] = $extensionClass; if(!ClassInfo::has_method_from($extensionClass, 'add_to_class', 'Extension')) { - Deprecation::notice('3.1.0', + Deprecation::notice('3.2.0', "add_to_class deprecated on $extensionClass. Use get_extra_config instead"); } diff --git a/forms/FormField.php b/forms/FormField.php index 2a23c6205..d682315e2 100644 --- a/forms/FormField.php +++ b/forms/FormField.php @@ -755,8 +755,11 @@ class FormField extends RequestHandler { return strtolower(preg_replace('/Field$/', '', $this->class)); } + /** + * @deprecated 3.2 Use FormField::create_tag() + */ public function createTag($tag, $attributes, $content = null) { - Deprecation::notice('3.1', 'Use FormField::create_tag()'); + Deprecation::notice('3.2', 'Use FormField::create_tag()'); return self::create_tag($tag, $attributes, $content); }