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
fedac503
Unverified
Commit
fedac503
authored
Apr 18, 2020
by
Grégoire Paris
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mark every exception as immutable
parent
0686b53c
Changes
27
Show whitespace changes
Inline
Side-by-side
Showing
27 changed files
with
60 additions
and
0 deletions
+60
-0
CacheException.php
lib/Doctrine/DBAL/Cache/CacheException.php
+3
-0
ConnectionException.php
lib/Doctrine/DBAL/ConnectionException.php
+3
-0
DBALException.php
lib/Doctrine/DBAL/DBALException.php
+3
-0
DB2Exception.php
lib/Doctrine/DBAL/Driver/IBMDB2/DB2Exception.php
+3
-0
ConnectionException.php
lib/Doctrine/DBAL/Exception/ConnectionException.php
+2
-0
ConstraintViolationException.php
lib/Doctrine/DBAL/Exception/ConstraintViolationException.php
+2
-0
DatabaseObjectExistsException.php
...Doctrine/DBAL/Exception/DatabaseObjectExistsException.php
+2
-0
DatabaseObjectNotFoundException.php
...ctrine/DBAL/Exception/DatabaseObjectNotFoundException.php
+2
-0
DeadlockException.php
lib/Doctrine/DBAL/Exception/DeadlockException.php
+2
-0
DriverException.php
lib/Doctrine/DBAL/Exception/DriverException.php
+2
-0
ForeignKeyConstraintViolationException.php
...DBAL/Exception/ForeignKeyConstraintViolationException.php
+2
-0
InvalidArgumentException.php
lib/Doctrine/DBAL/Exception/InvalidArgumentException.php
+2
-0
InvalidFieldNameException.php
lib/Doctrine/DBAL/Exception/InvalidFieldNameException.php
+2
-0
LockWaitTimeoutException.php
lib/Doctrine/DBAL/Exception/LockWaitTimeoutException.php
+2
-0
NonUniqueFieldNameException.php
lib/Doctrine/DBAL/Exception/NonUniqueFieldNameException.php
+2
-0
NotNullConstraintViolationException.php
...ne/DBAL/Exception/NotNullConstraintViolationException.php
+2
-0
ReadOnlyException.php
lib/Doctrine/DBAL/Exception/ReadOnlyException.php
+2
-0
ServerException.php
lib/Doctrine/DBAL/Exception/ServerException.php
+2
-0
SyntaxErrorException.php
lib/Doctrine/DBAL/Exception/SyntaxErrorException.php
+2
-0
TableExistsException.php
lib/Doctrine/DBAL/Exception/TableExistsException.php
+2
-0
TableNotFoundException.php
lib/Doctrine/DBAL/Exception/TableNotFoundException.php
+2
-0
UniqueConstraintViolationException.php
...ine/DBAL/Exception/UniqueConstraintViolationException.php
+2
-0
QueryException.php
lib/Doctrine/DBAL/Query/QueryException.php
+3
-0
SQLParserUtilsException.php
lib/Doctrine/DBAL/SQLParserUtilsException.php
+2
-0
SchemaException.php
lib/Doctrine/DBAL/Schema/SchemaException.php
+3
-0
ShardingException.php
lib/Doctrine/DBAL/Sharding/ShardingException.php
+2
-0
ConversionException.php
lib/Doctrine/DBAL/Types/ConversionException.php
+2
-0
No files found.
lib/Doctrine/DBAL/Cache/CacheException.php
View file @
fedac503
...
@@ -4,6 +4,9 @@ namespace Doctrine\DBAL\Cache;
...
@@ -4,6 +4,9 @@ namespace Doctrine\DBAL\Cache;
use
Doctrine\DBAL\DBALException
;
use
Doctrine\DBAL\DBALException
;
/**
* @psalm-immutable
*/
class
CacheException
extends
DBALException
class
CacheException
extends
DBALException
{
{
/**
/**
...
...
lib/Doctrine/DBAL/ConnectionException.php
View file @
fedac503
...
@@ -2,6 +2,9 @@
...
@@ -2,6 +2,9 @@
namespace
Doctrine\DBAL
;
namespace
Doctrine\DBAL
;
/**
* @psalm-immutable
*/
class
ConnectionException
extends
DBALException
class
ConnectionException
extends
DBALException
{
{
/**
/**
...
...
lib/Doctrine/DBAL/DBALException.php
View file @
fedac503
...
@@ -22,6 +22,9 @@ use function preg_replace;
...
@@ -22,6 +22,9 @@ use function preg_replace;
use
function
spl_object_hash
;
use
function
spl_object_hash
;
use
function
sprintf
;
use
function
sprintf
;
/**
* @psalm-immutable
*/
class
DBALException
extends
Exception
class
DBALException
extends
Exception
{
{
/**
/**
...
...
lib/Doctrine/DBAL/Driver/IBMDB2/DB2Exception.php
View file @
fedac503
...
@@ -4,6 +4,9 @@ namespace Doctrine\DBAL\Driver\IBMDB2;
...
@@ -4,6 +4,9 @@ namespace Doctrine\DBAL\Driver\IBMDB2;
use
Exception
;
use
Exception
;
/**
* @psalm-immutable
*/
class
DB2Exception
extends
Exception
class
DB2Exception
extends
Exception
{
{
}
}
lib/Doctrine/DBAL/Exception/ConnectionException.php
View file @
fedac503
...
@@ -4,6 +4,8 @@ namespace Doctrine\DBAL\Exception;
...
@@ -4,6 +4,8 @@ namespace Doctrine\DBAL\Exception;
/**
/**
* Base class for all connection related errors detected in the driver.
* Base class for all connection related errors detected in the driver.
*
* @psalm-immutable
*/
*/
class
ConnectionException
extends
DriverException
class
ConnectionException
extends
DriverException
{
{
...
...
lib/Doctrine/DBAL/Exception/ConstraintViolationException.php
View file @
fedac503
...
@@ -4,6 +4,8 @@ namespace Doctrine\DBAL\Exception;
...
@@ -4,6 +4,8 @@ namespace Doctrine\DBAL\Exception;
/**
/**
* Base class for all constraint violation related errors detected in the driver.
* Base class for all constraint violation related errors detected in the driver.
*
* @psalm-immutable
*/
*/
class
ConstraintViolationException
extends
ServerException
class
ConstraintViolationException
extends
ServerException
{
{
...
...
lib/Doctrine/DBAL/Exception/DatabaseObjectExistsException.php
View file @
fedac503
...
@@ -8,6 +8,8 @@ namespace Doctrine\DBAL\Exception;
...
@@ -8,6 +8,8 @@ namespace Doctrine\DBAL\Exception;
* A database object is considered any asset that can be created in a database
* A database object is considered any asset that can be created in a database
* such as schemas, tables, views, sequences, triggers, constraints, indexes,
* such as schemas, tables, views, sequences, triggers, constraints, indexes,
* functions, stored procedures etc.
* functions, stored procedures etc.
*
* @psalm-immutable
*/
*/
class
DatabaseObjectExistsException
extends
ServerException
class
DatabaseObjectExistsException
extends
ServerException
{
{
...
...
lib/Doctrine/DBAL/Exception/DatabaseObjectNotFoundException.php
View file @
fedac503
...
@@ -8,6 +8,8 @@ namespace Doctrine\DBAL\Exception;
...
@@ -8,6 +8,8 @@ namespace Doctrine\DBAL\Exception;
* A database object is considered any asset that can be created in a database
* A database object is considered any asset that can be created in a database
* such as schemas, tables, views, sequences, triggers, constraints, indexes,
* such as schemas, tables, views, sequences, triggers, constraints, indexes,
* functions, stored procedures etc.
* functions, stored procedures etc.
*
* @psalm-immutable
*/
*/
class
DatabaseObjectNotFoundException
extends
ServerException
class
DatabaseObjectNotFoundException
extends
ServerException
{
{
...
...
lib/Doctrine/DBAL/Exception/DeadlockException.php
View file @
fedac503
...
@@ -4,6 +4,8 @@ namespace Doctrine\DBAL\Exception;
...
@@ -4,6 +4,8 @@ namespace Doctrine\DBAL\Exception;
/**
/**
* Exception for a deadlock error of a transaction detected in the driver.
* Exception for a deadlock error of a transaction detected in the driver.
*
* @psalm-immutable
*/
*/
class
DeadlockException
extends
ServerException
implements
RetryableException
class
DeadlockException
extends
ServerException
implements
RetryableException
{
{
...
...
lib/Doctrine/DBAL/Exception/DriverException.php
View file @
fedac503
...
@@ -7,6 +7,8 @@ use Exception;
...
@@ -7,6 +7,8 @@ use Exception;
/**
/**
* Base class for all errors detected in the driver.
* Base class for all errors detected in the driver.
*
* @psalm-immutable
*/
*/
class
DriverException
extends
DBALException
class
DriverException
extends
DBALException
{
{
...
...
lib/Doctrine/DBAL/Exception/ForeignKeyConstraintViolationException.php
View file @
fedac503
...
@@ -4,6 +4,8 @@ namespace Doctrine\DBAL\Exception;
...
@@ -4,6 +4,8 @@ namespace Doctrine\DBAL\Exception;
/**
/**
* Exception for a foreign key constraint violation detected in the driver.
* Exception for a foreign key constraint violation detected in the driver.
*
* @psalm-immutable
*/
*/
class
ForeignKeyConstraintViolationException
extends
ConstraintViolationException
class
ForeignKeyConstraintViolationException
extends
ConstraintViolationException
{
{
...
...
lib/Doctrine/DBAL/Exception/InvalidArgumentException.php
View file @
fedac503
...
@@ -6,6 +6,8 @@ use Doctrine\DBAL\DBALException;
...
@@ -6,6 +6,8 @@ use Doctrine\DBAL\DBALException;
/**
/**
* Exception to be thrown when invalid arguments are passed to any DBAL API
* Exception to be thrown when invalid arguments are passed to any DBAL API
*
* @psalm-immutable
*/
*/
class
InvalidArgumentException
extends
DBALException
class
InvalidArgumentException
extends
DBALException
{
{
...
...
lib/Doctrine/DBAL/Exception/InvalidFieldNameException.php
View file @
fedac503
...
@@ -4,6 +4,8 @@ namespace Doctrine\DBAL\Exception;
...
@@ -4,6 +4,8 @@ namespace Doctrine\DBAL\Exception;
/**
/**
* Exception for an invalid specified field name in a statement detected in the driver.
* Exception for an invalid specified field name in a statement detected in the driver.
*
* @psalm-immutable
*/
*/
class
InvalidFieldNameException
extends
ServerException
class
InvalidFieldNameException
extends
ServerException
{
{
...
...
lib/Doctrine/DBAL/Exception/LockWaitTimeoutException.php
View file @
fedac503
...
@@ -4,6 +4,8 @@ namespace Doctrine\DBAL\Exception;
...
@@ -4,6 +4,8 @@ namespace Doctrine\DBAL\Exception;
/**
/**
* Exception for a lock wait timeout error of a transaction detected in the driver.
* Exception for a lock wait timeout error of a transaction detected in the driver.
*
* @psalm-immutable
*/
*/
class
LockWaitTimeoutException
extends
ServerException
implements
RetryableException
class
LockWaitTimeoutException
extends
ServerException
implements
RetryableException
{
{
...
...
lib/Doctrine/DBAL/Exception/NonUniqueFieldNameException.php
View file @
fedac503
...
@@ -4,6 +4,8 @@ namespace Doctrine\DBAL\Exception;
...
@@ -4,6 +4,8 @@ namespace Doctrine\DBAL\Exception;
/**
/**
* Exception for a non-unique/ambiguous specified field name in a statement detected in the driver.
* Exception for a non-unique/ambiguous specified field name in a statement detected in the driver.
*
* @psalm-immutable
*/
*/
class
NonUniqueFieldNameException
extends
ServerException
class
NonUniqueFieldNameException
extends
ServerException
{
{
...
...
lib/Doctrine/DBAL/Exception/NotNullConstraintViolationException.php
View file @
fedac503
...
@@ -4,6 +4,8 @@ namespace Doctrine\DBAL\Exception;
...
@@ -4,6 +4,8 @@ namespace Doctrine\DBAL\Exception;
/**
/**
* Exception for a NOT NULL constraint violation detected in the driver.
* Exception for a NOT NULL constraint violation detected in the driver.
*
* @psalm-immutable
*/
*/
class
NotNullConstraintViolationException
extends
ConstraintViolationException
class
NotNullConstraintViolationException
extends
ConstraintViolationException
{
{
...
...
lib/Doctrine/DBAL/Exception/ReadOnlyException.php
View file @
fedac503
...
@@ -4,6 +4,8 @@ namespace Doctrine\DBAL\Exception;
...
@@ -4,6 +4,8 @@ namespace Doctrine\DBAL\Exception;
/**
/**
* Exception for a write operation attempt on a read-only database element detected in the driver.
* Exception for a write operation attempt on a read-only database element detected in the driver.
*
* @psalm-immutable
*/
*/
class
ReadOnlyException
extends
ServerException
class
ReadOnlyException
extends
ServerException
{
{
...
...
lib/Doctrine/DBAL/Exception/ServerException.php
View file @
fedac503
...
@@ -4,6 +4,8 @@ namespace Doctrine\DBAL\Exception;
...
@@ -4,6 +4,8 @@ namespace Doctrine\DBAL\Exception;
/**
/**
* Base class for all server related errors detected in the driver.
* Base class for all server related errors detected in the driver.
*
* @psalm-immutable
*/
*/
class
ServerException
extends
DriverException
class
ServerException
extends
DriverException
{
{
...
...
lib/Doctrine/DBAL/Exception/SyntaxErrorException.php
View file @
fedac503
...
@@ -4,6 +4,8 @@ namespace Doctrine\DBAL\Exception;
...
@@ -4,6 +4,8 @@ namespace Doctrine\DBAL\Exception;
/**
/**
* Exception for a syntax error in a statement detected in the driver.
* Exception for a syntax error in a statement detected in the driver.
*
* @psalm-immutable
*/
*/
class
SyntaxErrorException
extends
ServerException
class
SyntaxErrorException
extends
ServerException
{
{
...
...
lib/Doctrine/DBAL/Exception/TableExistsException.php
View file @
fedac503
...
@@ -4,6 +4,8 @@ namespace Doctrine\DBAL\Exception;
...
@@ -4,6 +4,8 @@ namespace Doctrine\DBAL\Exception;
/**
/**
* Exception for an already existing table referenced in a statement detected in the driver.
* Exception for an already existing table referenced in a statement detected in the driver.
*
* @psalm-immutable
*/
*/
class
TableExistsException
extends
DatabaseObjectExistsException
class
TableExistsException
extends
DatabaseObjectExistsException
{
{
...
...
lib/Doctrine/DBAL/Exception/TableNotFoundException.php
View file @
fedac503
...
@@ -4,6 +4,8 @@ namespace Doctrine\DBAL\Exception;
...
@@ -4,6 +4,8 @@ namespace Doctrine\DBAL\Exception;
/**
/**
* Exception for an unknown table referenced in a statement detected in the driver.
* Exception for an unknown table referenced in a statement detected in the driver.
*
* @psalm-immutable
*/
*/
class
TableNotFoundException
extends
DatabaseObjectNotFoundException
class
TableNotFoundException
extends
DatabaseObjectNotFoundException
{
{
...
...
lib/Doctrine/DBAL/Exception/UniqueConstraintViolationException.php
View file @
fedac503
...
@@ -4,6 +4,8 @@ namespace Doctrine\DBAL\Exception;
...
@@ -4,6 +4,8 @@ namespace Doctrine\DBAL\Exception;
/**
/**
* Exception for a unique constraint violation detected in the driver.
* Exception for a unique constraint violation detected in the driver.
*
* @psalm-immutable
*/
*/
class
UniqueConstraintViolationException
extends
ConstraintViolationException
class
UniqueConstraintViolationException
extends
ConstraintViolationException
{
{
...
...
lib/Doctrine/DBAL/Query/QueryException.php
View file @
fedac503
...
@@ -5,6 +5,9 @@ namespace Doctrine\DBAL\Query;
...
@@ -5,6 +5,9 @@ namespace Doctrine\DBAL\Query;
use
Doctrine\DBAL\DBALException
;
use
Doctrine\DBAL\DBALException
;
use
function
implode
;
use
function
implode
;
/**
* @psalm-immutable
*/
class
QueryException
extends
DBALException
class
QueryException
extends
DBALException
{
{
/**
/**
...
...
lib/Doctrine/DBAL/SQLParserUtilsException.php
View file @
fedac503
...
@@ -6,6 +6,8 @@ use function sprintf;
...
@@ -6,6 +6,8 @@ use function sprintf;
/**
/**
* Doctrine\DBAL\ConnectionException
* Doctrine\DBAL\ConnectionException
*
* @psalm-immutable
*/
*/
class
SQLParserUtilsException
extends
DBALException
class
SQLParserUtilsException
extends
DBALException
{
{
...
...
lib/Doctrine/DBAL/Schema/SchemaException.php
View file @
fedac503
...
@@ -6,6 +6,9 @@ use Doctrine\DBAL\DBALException;
...
@@ -6,6 +6,9 @@ use Doctrine\DBAL\DBALException;
use
function
implode
;
use
function
implode
;
use
function
sprintf
;
use
function
sprintf
;
/**
* @psalm-immutable
*/
class
SchemaException
extends
DBALException
class
SchemaException
extends
DBALException
{
{
public
const
TABLE_DOESNT_EXIST
=
10
;
public
const
TABLE_DOESNT_EXIST
=
10
;
...
...
lib/Doctrine/DBAL/Sharding/ShardingException.php
View file @
fedac503
...
@@ -6,6 +6,8 @@ use Doctrine\DBAL\DBALException;
...
@@ -6,6 +6,8 @@ use Doctrine\DBAL\DBALException;
/**
/**
* Sharding related Exceptions
* Sharding related Exceptions
*
* @psalm-immutable
*/
*/
class
ShardingException
extends
DBALException
class
ShardingException
extends
DBALException
{
{
...
...
lib/Doctrine/DBAL/Types/ConversionException.php
View file @
fedac503
...
@@ -15,6 +15,8 @@ use function substr;
...
@@ -15,6 +15,8 @@ use function substr;
/**
/**
* Conversion Exception is thrown when the database to PHP conversion fails.
* Conversion Exception is thrown when the database to PHP conversion fails.
*
* @psalm-immutable
*/
*/
class
ConversionException
extends
DBALException
class
ConversionException
extends
DBALException
{
{
...
...
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