original_string: protected function _basicTypeCast($value)
      {
          deprecationWarning(
              'Using Type::_basicTypeCast() is deprecated. ' .
              "The '{$this->_name}' type needs to be updated to implement `TypeInterface`."
          );
          if ($value === null) {
              return null;
          }
          if (!empty(static::$_basicTypes[$this->_name])) {
              $typeInfo = static::$_basicTypes[$this->_name];
              if (isset($typeInfo['callback'])) {
                  return $typeInfo['callback']($value);
              }
          }
  
          return $value;
      }
code: protected function _basicTypeCast($value)
      {
          deprecationWarning(
              'Using Type::_basicTypeCast() is deprecated. ' .
              "The '{$this->_name}' type needs to be updated to implement `TypeInterface`."
          );
          if ($value === null) {
              return null;
          }
          if (!empty(static::$_basicTypes[$this->_name])) {
              $typeInfo = static::$_basicTypes[$this->_name];
              if (isset($typeInfo['callback'])) {
                  return $typeInfo['callback']($value);
              }
          }
  
          return $value;
      }
code_tokens: protected function _basicTypeCast ( $ value ) { deprecationWarning ( 'Using Type::_basicTypeCast() is deprecated. ' . "The '{$this->_name}' type needs to be updated to implement `TypeInterface`." ) ; if ( $ value === null ) { return null ; } if ( ! empty ( static :: $ _basicTypes [ $ this -> _name ] ) ) { $ typeInfo = static :: $ _basicTypes [ $ this -> _name ] ; if ( isset ( $ typeInfo [ 'callback' ] ) ) { return $ typeInfo [ 'callback' ] ( $ value ) ; } } return $ value ; }
docstring: Checks whether this type is a basic one and can be converted using a callback
  If it is, returns converted value
  
  @param mixed $value Value to be converted to PHP equivalent
  @return mixed
  @deprecated 3.1 All types should now be a specific class
docstring_tokens: Checks whether this type is a basic one and can be converted using a callback If it is returns converted value