Browse Source

Merge pull request #12329 from cakephp/issue-12257

Improve deprecation error.
saeideng 7 years ago
parent
commit
336e9be2d4
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;
         }