Skip to content
Permalink
Browse files

Improve deprecation error.

Refs #12257
  • Loading branch information...
markstory committed Jul 5, 2018
1 parent 471acee commit cc269286767a875bc781fe4497764c08614f3586
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/Database/Type.php
@@ -283,7 +283,10 @@ public function toPHP($value, Driver $driver)
*/
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;
}

0 comments on commit cc26928

Please sign in to comment.
You can’t perform that action at this time.