Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongo-php-library
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
sinan
mongo-php-library
Commits
74af87db
Commit
74af87db
authored
Jan 07, 2016
by
Jeremy Mikola
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused exception classes
parent
e2384aae
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
23 deletions
+0
-23
Collection.php
src/Collection.php
+0
-1
UnexpectedTypeException.php
src/Exception/UnexpectedTypeException.php
+0
-11
UnexpectedValueTypeException.php
src/Exception/UnexpectedValueTypeException.php
+0
-11
No files found.
src/Collection.php
View file @
74af87db
...
@@ -11,7 +11,6 @@ use MongoDB\Driver\Server;
...
@@ -11,7 +11,6 @@ use MongoDB\Driver\Server;
use
MongoDB\Driver\WriteConcern
;
use
MongoDB\Driver\WriteConcern
;
use
MongoDB\Exception\InvalidArgumentException
;
use
MongoDB\Exception\InvalidArgumentException
;
use
MongoDB\Exception\InvalidArgumentTypeException
;
use
MongoDB\Exception\InvalidArgumentTypeException
;
use
MongoDB\Exception\UnexpectedTypeException
;
use
MongoDB\Model\IndexInfoIterator
;
use
MongoDB\Model\IndexInfoIterator
;
use
MongoDB\Model\IndexInput
;
use
MongoDB\Model\IndexInput
;
use
MongoDB\Operation\Aggregate
;
use
MongoDB\Operation\Aggregate
;
...
...
src/Exception/UnexpectedTypeException.php
deleted
100644 → 0
View file @
e2384aae
<?php
namespace
MongoDB\Exception
;
class
UnexpectedTypeException
extends
InvalidArgumentException
{
public
function
__construct
(
$value
,
$expectedType
)
{
parent
::
__construct
(
sprintf
(
'Expected argument of type "%s", "%s" given'
,
$expectedType
,
is_object
(
$value
)
?
get_class
(
$value
)
:
gettype
(
$value
)));
}
}
src/Exception/UnexpectedValueTypeException.php
deleted
100644 → 0
View file @
e2384aae
<?php
namespace
MongoDB\Exception
;
class
UnexpectedValueTypeException
extends
UnexpectedValueException
{
public
function
__construct
(
$name
,
$value
,
$expectedType
)
{
parent
::
__construct
(
sprintf
(
'Expected %s to have type "%s" but found "%s"'
,
$name
,
$expectedType
,
is_object
(
$value
)
?
get_class
(
$value
)
:
gettype
(
$value
)));
}
}
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