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
5a61341f
Unverified
Commit
5a61341f
authored
Apr 15, 2020
by
Grégoire Paris
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mark exceptions as immutable
parent
4cff5bc6
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
16 additions
and
5 deletions
+16
-5
baseline.xml
baseline.xml
+0
-5
AbstractDriverException.php
lib/Doctrine/DBAL/Driver/AbstractDriverException.php
+2
-0
DriverException.php
lib/Doctrine/DBAL/Driver/DriverException.php
+2
-0
MysqliException.php
lib/Doctrine/DBAL/Driver/Mysqli/MysqliException.php
+2
-0
OCI8Exception.php
lib/Doctrine/DBAL/Driver/OCI8/OCI8Exception.php
+3
-0
PDOException.php
lib/Doctrine/DBAL/Driver/PDOException.php
+2
-0
SQLAnywhereException.php
...Doctrine/DBAL/Driver/SQLAnywhere/SQLAnywhereException.php
+2
-0
SQLSrvException.php
lib/Doctrine/DBAL/Driver/SQLSrv/SQLSrvException.php
+3
-0
No files found.
baseline.xml
View file @
5a61341f
...
...
@@ -5,11 +5,6 @@
<code>
int
</code>
</InvalidParamDefault>
</file>
<file
src=
"lib/Doctrine/DBAL/Driver/DriverException.php"
>
<MissingImmutableAnnotation
occurrences=
"1"
>
<code>
public function getMessage();
</code>
</MissingImmutableAnnotation>
</file>
<file
src=
"lib/Doctrine/DBAL/Driver/SQLAnywhere/SQLAnywhereConnection.php"
>
<UndefinedFunction
occurrences=
"14"
>
<code>
sasql_pconnect($dsn)
</code>
...
...
lib/Doctrine/DBAL/Driver/AbstractDriverException.php
View file @
5a61341f
...
...
@@ -6,6 +6,8 @@ use Exception;
/**
* Abstract base implementation of the {@link DriverException} interface.
*
* @psalm-immutable
*/
abstract
class
AbstractDriverException
extends
Exception
implements
DriverException
{
...
...
lib/Doctrine/DBAL/Driver/DriverException.php
View file @
5a61341f
...
...
@@ -9,6 +9,8 @@ use Throwable;
*
* Driver exceptions provide the SQLSTATE of the driver
* and the driver specific error code at the time the error occurred.
*
* @psalm-immutable
*/
interface
DriverException
extends
Throwable
{
...
...
lib/Doctrine/DBAL/Driver/Mysqli/MysqliException.php
View file @
5a61341f
...
...
@@ -6,6 +6,8 @@ use Doctrine\DBAL\Driver\AbstractDriverException;
/**
* Exception thrown in case the mysqli driver errors.
*
* @psalm-immutable
*/
class
MysqliException
extends
AbstractDriverException
{
...
...
lib/Doctrine/DBAL/Driver/OCI8/OCI8Exception.php
View file @
5a61341f
...
...
@@ -4,6 +4,9 @@ namespace Doctrine\DBAL\Driver\OCI8;
use
Doctrine\DBAL\Driver\AbstractDriverException
;
/**
* @psalm-immutable
*/
class
OCI8Exception
extends
AbstractDriverException
{
/**
...
...
lib/Doctrine/DBAL/Driver/PDOException.php
View file @
5a61341f
...
...
@@ -4,6 +4,8 @@ namespace Doctrine\DBAL\Driver;
/**
* Tiny wrapper for PDOException instances to implement the {@link DriverException} interface.
*
* @psalm-immutable
*/
class
PDOException
extends
\PDOException
implements
DriverException
{
...
...
lib/Doctrine/DBAL/Driver/SQLAnywhere/SQLAnywhereException.php
View file @
5a61341f
...
...
@@ -12,6 +12,8 @@ use function sasql_stmt_error;
/**
* SAP Sybase SQL Anywhere driver exception.
*
* @psalm-immutable
*/
class
SQLAnywhereException
extends
AbstractDriverException
{
...
...
lib/Doctrine/DBAL/Driver/SQLSrv/SQLSrvException.php
View file @
5a61341f
...
...
@@ -7,6 +7,9 @@ use const SQLSRV_ERR_ERRORS;
use
function
rtrim
;
use
function
sqlsrv_errors
;
/**
* @psalm-immutable
*/
class
SQLSrvException
extends
AbstractDriverException
{
/**
...
...
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