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
b74cb36c
Unverified
Commit
b74cb36c
authored
Jul 07, 2020
by
Sergei Morozov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove deprecated DBALException factory methods
parent
98c23feb
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
23 deletions
+7
-23
UPGRADE.md
UPGRADE.md
+7
-0
DBALException.php
src/DBALException.php
+0
-23
No files found.
UPGRADE.md
View file @
b74cb36c
# Upgrade to 3.0
# Upgrade to 3.0
## BC BREAK: Removed DBALException factory methods
The following factory methods of the DBALException class have been removed:
1.
`DBALException::invalidPlatformSpecified()`
.
2.
`DBALException::invalidPdoInstance()`
.
## BC BREAK: PDO-based driver classes are moved under the PDO namespace
## BC BREAK: PDO-based driver classes are moved under the PDO namespace
The following classes have been renamed:
The following classes have been renamed:
...
...
src/DBALException.php
View file @
b74cb36c
...
@@ -28,16 +28,6 @@ class DBALException extends Exception
...
@@ -28,16 +28,6 @@ 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
{
return
new
self
(
"Invalid 'platform' option specified, need to give an instance of "
.
AbstractPlatform
::
class
.
'.'
);
}
/**
/**
* @param mixed $invalidPlatform
* @param mixed $invalidPlatform
*/
*/
...
@@ -82,19 +72,6 @@ class DBALException extends Exception
...
@@ -82,19 +72,6 @@ class DBALException extends Exception
);
);
}
}
/**
* @deprecated Passing a PDO instance in connection parameters is deprecated.
*
* @return DBALException
*/
public
static
function
invalidPdoInstance
()
{
return
new
self
(
"The 'pdo' option was used in DriverManager::getConnection() but no "
.
'instance of PDO was given.'
);
}
/**
/**
* @param string|null $url The URL that was provided in the connection parameters (if any).
* @param string|null $url The URL that was provided in the connection parameters (if any).
*
*
...
...
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