mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Replace deprecation warnings with Deprecation::notice() instead
This commit is contained in:
parent
fa764c72b4
commit
cbf4ad3a75
@ -68,7 +68,7 @@ class ViewableData extends Object implements IteratorAggregate {
|
|||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public static function castingObjectCreator($fieldSchema) {
|
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
|
* @return array
|
||||||
*/
|
*/
|
||||||
public static function castingObjectCreatorPair($fieldSchema) {
|
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 -----------------------------------------------------------------------------------------
|
// FIELD GETTERS & SETTERS -----------------------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user