Skip to content
This repository
Browse code

MINOR Replace deprecation warnings with Deprecation::notice() instead

  • Loading branch information...
commit cbf4ad3a75c92f7ce954e334bdd2c369603c895e 1 parent fa764c7
Sean Harvey authored May 30, 2012

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  view/ViewableData.php
4  view/ViewableData.php
@@ -68,7 +68,7 @@ class ViewableData extends Object implements IteratorAggregate {
68 68
 	 * @return string
69 69
 	 */
70 70
 	public static function castingObjectCreator($fieldSchema) {
71  
-		user_error("Deprecated in a breaking way, use Object::create_from_string()", E_USER_WARNING);
  71
+		Deprecation::notice('2.5', 'Use Object::create_from_string() instead');
72 72
 	}
73 73
 	
74 74
 	/**
@@ -79,7 +79,7 @@ public static function castingObjectCreator($fieldSchema) {
79 79
 	 * @return array
80 80
 	 */
81 81
 	public static function castingObjectCreatorPair($fieldSchema) {
82  
-		user_error("Deprecated in a breaking way, use Object::create_from_string()", E_USER_WARNING);
  82
+		Deprecation::notice('2.5', 'Use Object::create_from_string() instead');
83 83
 	}
84 84
 	
85 85
 	// FIELD GETTERS & SETTERS -----------------------------------------------------------------------------------------

0 notes on commit cbf4ad3

Please sign in to comment.
Something went wrong with that request. Please try again.