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

This commit is contained in:
Sean Harvey 2012-05-30 22:33:11 +12:00
parent fa764c72b4
commit cbf4ad3a75

View File

@ -68,7 +68,7 @@ class ViewableData extends Object implements IteratorAggregate {
* @return string
*/
public static function castingObjectCreator($fieldSchema) {
user_error("Deprecated in a breaking way, use Object::create_from_string()", E_USER_WARNING);
Deprecation::notice('2.5', 'Use Object::create_from_string() instead');
}
/**
@ -79,7 +79,7 @@ class ViewableData extends Object implements IteratorAggregate {
* @return array
*/
public static function castingObjectCreatorPair($fieldSchema) {
user_error("Deprecated in a breaking way, use Object::create_from_string()", E_USER_WARNING);
Deprecation::notice('2.5', 'Use Object::create_from_string() instead');
}
// FIELD GETTERS & SETTERS -----------------------------------------------------------------------------------------