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
559ebed9
Unverified
Commit
559ebed9
authored
Dec 06, 2017
by
Grégoire Paris
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused exception
parent
0241134e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
6 deletions
+1
-6
InvalidArgumentException.php
lib/Doctrine/DBAL/Exception/InvalidArgumentException.php
+0
-5
Column.php
lib/Doctrine/DBAL/Schema/Column.php
+1
-1
No files found.
lib/Doctrine/DBAL/Exception/InvalidArgumentException.php
View file @
559ebed9
...
...
@@ -37,9 +37,4 @@ class InvalidArgumentException extends DBALException
{
return
new
self
(
'Empty criteria was used, expected non-empty criteria'
);
}
public
static
function
fromUnsupportedOption
(
string
$name
)
:
self
{
return
new
self
(
sprintf
(
'The "%s" option is not supported'
,
$name
));
}
}
lib/Doctrine/DBAL/Schema/Column.php
View file @
559ebed9
...
...
@@ -120,7 +120,7 @@ class Column extends AbstractAsset
foreach
(
$options
as
$name
=>
$value
)
{
$method
=
"set"
.
$name
;
if
(
!
method_exists
(
$this
,
$method
))
{
// next major:
use InvalidArgumentException::fromUnsupportedOption()
// next major:
throw an exception
@
trigger_error
(
sprintf
(
'The "%s" option is not supported,'
.
' setting it is deprecated and will cause an exception in 3.0'
,
...
...
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