Browse Source

Improve deprecation error.

Refs #12257
Mark Story 7 years ago
parent
commit
cc26928676
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/Database/Type.php

+ 4 - 1
src/Database/Type.php

@@ -283,7 +283,10 @@ class Type implements TypeInterface
      */
     protected function _basicTypeCast($value)
     {
-        deprecationWarning('Type::_basicTypeCast() is deprecated.');
+        deprecationWarning(
+            'Using Type::_basicTypeCast() is deprecated. ' .
+            "The '{$this->_name}' type needs to be updated to implement `TypeInterface`."
+        );
         if ($value === null) {
             return null;
         }