Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
8e4b2b2f
Unverified
Commit
8e4b2b2f
authored
Jul 01, 2020
by
Sergei Morozov
Committed by
GitHub
Jul 01, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4134 from morozov/deprecate-some-dbal-exception-methods
Deprecate some DBALException factory methods
parents
28ac2961
0fe1dc4b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
UPGRADE.md
UPGRADE.md
+5
-0
DBALException.php
lib/Doctrine/DBAL/DBALException.php
+5
-0
No files found.
UPGRADE.md
View file @
8e4b2b2f
# Upgrade to 2.11
# Upgrade to 2.11
## `DBALException` factory method deprecations
1.
`DBALException::invalidPlatformType()`
is deprecated as unused as of v2.7.0.
2.
`DBALException::invalidPdoInstance()`
as passing a PDO instance via configuration is deprecated.
## `AbstractPlatform::fixSchemaElementName()` is deprecated.
## `AbstractPlatform::fixSchemaElementName()` is deprecated.
The method is not used anywhere except for tests.
The method is not used anywhere except for tests.
...
...
lib/Doctrine/DBAL/DBALException.php
View file @
8e4b2b2f
...
@@ -38,6 +38,9 @@ class DBALException extends Exception
...
@@ -38,6 +38,9 @@ class DBALException extends Exception
return
new
self
(
sprintf
(
"Operation '%s' is not supported by platform."
,
$method
));
return
new
self
(
sprintf
(
"Operation '%s' is not supported by platform."
,
$method
));
}
}
/**
* @deprecated Use {@link invalidPlatformType()} instead.
*/
public
static
function
invalidPlatformSpecified
()
:
self
public
static
function
invalidPlatformSpecified
()
:
self
{
{
return
new
self
(
return
new
self
(
...
@@ -90,6 +93,8 @@ class DBALException extends Exception
...
@@ -90,6 +93,8 @@ class DBALException extends Exception
}
}
/**
/**
* @deprecated Passing a PDO instance in connection parameters is deprecated.
*
* @return DBALException
* @return DBALException
*/
*/
public
static
function
invalidPdoInstance
()
public
static
function
invalidPdoInstance
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment