eloquent-ifrs
eloquent-ifrs copied to clipboard
Upgrade: Bump doctrine/dbal from 3.7.x-dev to 4.0.0-beta2
Bumps doctrine/dbal from 3.7.x-dev to 4.0.0-beta2.
Release notes
Sourced from doctrine/dbal's releases.
4.0.0-beta2
What's Changed
- Update project metadata by
@morozov
in doctrine/dbal#5790- Revert "Clean up MySQL version detection logic" by
@greg0ire
in doctrine/dbal#5795- Fix typo in exception message by
@derrabus
in doctrine/dbal#5799- Run tests with MariaDB 10.9 by
@derrabus
in doctrine/dbal#5798- Remove unwanted suffix by
@greg0ire
in doctrine/dbal#5801- Bump dev tools by
@derrabus
in doctrine/dbal#5806- PHPStan 1.9.1 by
@derrabus
in doctrine/dbal#5807- Merge tests for fetch behavior of freed results by
@derrabus
in doctrine/dbal#5810- Document breaking changes about serverVersion by
@greg0ire
in doctrine/dbal#5797- Bump tools and workflows by
@derrabus
in doctrine/dbal#5828- Doctrine CS 11.0 by
@derrabus
in doctrine/dbal#5831- Document tuple return type of
generateCacheKeys()
by@derrabus
in doctrine/dbal#5834- Update Branch metadata by
@derrabus
in doctrine/dbal#5840- Introduce a
ArrayParameterType
enum by@derrabus
in doctrine/dbal#5838- Restore
Connection::ARRAY_PARAM_OFFSET
by@derrabus
in doctrine/dbal#5842- Introduce a
ArrayParameterType
enum by@derrabus
in doctrine/dbal#5839- Trigger a deprecation for versions that will be parsed differently by
@derrabus
in doctrine/dbal#5844- PHPStan 1.9.4 by
@derrabus
in doctrine/dbal#5845- Standalone DSN parser by
@derrabus
in doctrine/dbal#5843- Fix test cases for URL parsing by
@derrabus
in doctrine/dbal#5848- Remove database URLs from tests by
@derrabus
in doctrine/dbal#5852- Remove the
url
connection param by@derrabus
in doctrine/dbal#5850- Allow to explicitly set the wrapper class to the default one by
@derrabus
in doctrine/dbal#5851- Use a narrower return type for DriverManager::getAvailableDrivers() by
@MidnightDesign
in doctrine/dbal#5853- Test the return type of DriverManager::getAvailableDrivers() by
@MidnightDesign
in doctrine/dbal#5854- Reuse the Params type alias for getConnection() by
@derrabus
in doctrine/dbal#5855- Use narrower return types for convertTo*Value methods by
@MidnightDesign
in doctrine/dbal#5856- Formally allow
url
inDriverManager::getConnection()
by@someniatko
in doctrine/dbal#5857- fix platform comparator issues when using compareTables by
@dmaicher
in doctrine/dbal#5861- Allow passing url to override params by
@keulinho
in doctrine/dbal#5862- PHPStan 1.9.11, PHPUnit 9.5.28, Doctrine CS 11.1 by
@derrabus
in doctrine/dbal#5864- Flag parameters as sensitive if they could contain the database password by
@derrabus
in doctrine/dbal#5866- PHPStan 1.9.14 by
@derrabus
in doctrine/dbal#5871- Add missing doc blocks to Index and UniqueConstraint by
@derrabus
in doctrine/dbal#5875- Use psalm-assert to get rid of
assert()
calls by@derrabus
in doctrine/dbal#5877- Explain why the number of affected rows can be a string by
@GromNaN
in doctrine/dbal#5872- [Docs] Add IBM DB2 to
configuration.rst
by@phansys
in doctrine/dbal#5881- Make sure only PDO parameter types are passed to PDO methods by
@derrabus
in doctrine/dbal#5883- Add the PgSQL driver by
@derrabus
in doctrine/dbal#5880- Introduce the
SchemaManagerFactory
interface by@derrabus
in doctrine/dbal#5876- Optimize pgsql queries without parameters by
@derrabus
in doctrine/dbal#5889- Raise exception if
pg_send_*()
calls fail by@derrabus
in doctrine/dbal#5888- Deallocate prepared statements in destructor by
@derrabus
in doctrine/dbal#5893- Make PDO transaction methods throw
PDOException&DriverException
by@maxm86545
in doctrine/dbal#5890- PHPUnit 9.6.0 by
@derrabus
in doctrine/dbal#5899- Close pgsql connection in destructor by
@derrabus
in doctrine/dbal#5892- Widen the return type of
Result::rowCount()
by@derrabus
in doctrine/dbal#5879- Remove
InvalidParameterType
exception by@derrabus
in doctrine/dbal#5896
... (truncated)
Upgrade guide
Sourced from doctrine/dbal's upgrade guide.
Note about upgrading: Doctrine uses static and runtime mechanisms to raise awareness about deprecated code.
- Use of
@deprecated
docblock that is detected by IDEs (like PHPStorm) or Static Analysis tools (like Psalm, phpstan)- Use of our low-overhead runtime deprecation API, details: https://github.com/doctrine/deprecations/
Upgrade to 3.6
Deprecated not setting a schema manager factory
DBAL 4 will change the way the schema manager is created. To opt in to the new behavior, please configure the schema manager factory:
$configuration = new Configuration(); $configuration->setSchemaManagerFactory(new DefaultSchemaManagerFactory());
$connection = DriverManager::getConnection( [/* your parameters */], $configuration, );
If you use a custom platform implementation, please make sure it implements the
createSchemaManager()
method . Otherwise, the connection will fail to create a schema manager.Deprecated the
url
connection parameterDBAL ships with a new and configurable DSN parser that can be used to parse a database URL into connection parameters understood by
DriverManager
.Before
$connection = DriverManager::getConnection( ['url' => 'mysql://my-user:t0ps3cr3t@my-host/my-database'] );
After
$dsnParser = new DsnParser(['mysql' => 'pdo_mysql']); $connection = DriverManager::getConnection( $dsnParser->parse('mysql://my-user:t0ps3cr3t@my-host/my-database') );
... (truncated)
Commits
- See full diff in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebase
will rebase this PR -
@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it -
@dependabot merge
will merge this PR after your CI passes on it -
@dependabot squash and merge
will squash and merge this PR after your CI passes on it -
@dependabot cancel merge
will cancel a previously requested merge and block automerging -
@dependabot reopen
will reopen this PR if it is closed -
@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)