"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/Database/Driver.php" between
cakephp-4.0.1.tar.gz and cakephp-4.0.2.tar.gz

About: CakePHP is a rapid development framework for PHP applications. Source code.

Driver.php  (cakephp-4.0.1):Driver.php  (cakephp-4.0.2)
skipping to change at line 35 skipping to change at line 35
use PDO; use PDO;
use PDOException; use PDOException;
/** /**
* Represents a database driver containing all specificities for * Represents a database driver containing all specificities for
* a database engine including its SQL dialect. * a database engine including its SQL dialect.
*/ */
abstract class Driver implements DriverInterface abstract class Driver implements DriverInterface
{ {
/** /**
* @var int|null Maximum alias length or null if no limit
*/
protected const MAX_ALIAS_LENGTH = null;
/**
* Instance of PDO. * Instance of PDO.
* *
* @var \PDO * @var \PDO
*/ */
protected $_connection; protected $_connection;
/** /**
* Configuration data. * Configuration data.
* *
* @var array * @var array
skipping to change at line 419 skipping to change at line 424
$className = TableSchema::class; $className = TableSchema::class;
if (isset($this->_config['tableSchema'])) { if (isset($this->_config['tableSchema'])) {
$className = $this->_config['tableSchema']; $className = $this->_config['tableSchema'];
} }
/** @var \Cake\Database\Schema\TableSchema */ /** @var \Cake\Database\Schema\TableSchema */
return new $className($table, $columns); return new $className($table, $columns);
} }
/** /**
* Returns the maximum alias length allowed.
* This can be different than the maximum identifier length for columns.
*
* @return int|null Maximum alias length or null if no limit
*/
public function getMaxAliasLength(): ?int
{
return static::MAX_ALIAS_LENGTH;
}
/**
* Destructor * Destructor
*/ */
public function __destruct() public function __destruct()
{ {
/** @psalm-suppress PossiblyNullPropertyAssignmentValue */ /** @psalm-suppress PossiblyNullPropertyAssignmentValue */
$this->_connection = null; $this->_connection = null;
} }
/** /**
* Returns an array that can be used to describe the internal state of this * Returns an array that can be used to describe the internal state of this
 End of changes. 2 change blocks. 
0 lines changed or deleted 16 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)