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
34c4ddec
Commit
34c4ddec
authored
Sep 11, 2017
by
Alessandro Minoccheri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use newer PHP syntax
parent
436179f0
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
14 deletions
+14
-14
AbstractPostgreSQLDriver.php
lib/Doctrine/DBAL/Driver/AbstractPostgreSQLDriver.php
+2
-2
QueryBuilder.php
lib/Doctrine/DBAL/Query/QueryBuilder.php
+2
-2
PoolingShardConnection.php
lib/Doctrine/DBAL/Sharding/PoolingShardConnection.php
+4
-4
AbstractDriverTest.php
...trine/Tests/DBAL/Functional/Driver/AbstractDriverTest.php
+2
-2
SchemaManagerFunctionalTestCase.php
...BAL/Functional/Schema/SchemaManagerFunctionalTestCase.php
+2
-2
SqliteSchemaManagerTest.php
.../Tests/DBAL/Functional/Schema/SqliteSchemaManagerTest.php
+2
-2
No files found.
lib/Doctrine/DBAL/Driver/AbstractPostgreSQLDriver.php
View file @
34c4ddec
...
...
@@ -108,8 +108,8 @@ abstract class AbstractPostgreSQLDriver implements Driver, ExceptionConverterDri
}
$majorVersion
=
$versionParts
[
'major'
];
$minorVersion
=
isset
(
$versionParts
[
'minor'
])
?
$versionParts
[
'minor'
]
:
0
;
$patchVersion
=
isset
(
$versionParts
[
'patch'
])
?
$versionParts
[
'patch'
]
:
0
;
$minorVersion
=
$versionParts
[
'minor'
]
??
0
;
$patchVersion
=
$versionParts
[
'patch'
]
??
0
;
$version
=
$majorVersion
.
'.'
.
$minorVersion
.
'.'
.
$patchVersion
;
switch
(
true
)
{
...
...
lib/Doctrine/DBAL/Query/QueryBuilder.php
View file @
34c4ddec
...
...
@@ -325,7 +325,7 @@ class QueryBuilder
*/
public
function
getParameter
(
$key
)
{
return
isset
(
$this
->
params
[
$key
])
?
$this
->
params
[
$key
]
:
null
;
return
$this
->
params
[
$key
]
??
null
;
}
/**
...
...
@@ -347,7 +347,7 @@ class QueryBuilder
*/
public
function
getParameterType
(
$key
)
{
return
isset
(
$this
->
paramTypes
[
$key
])
?
$this
->
paramTypes
[
$key
]
:
null
;
return
$this
->
paramTypes
[
$key
]
??
null
;
}
/**
...
...
lib/Doctrine/DBAL/Sharding/PoolingShardConnection.php
View file @
34c4ddec
...
...
@@ -151,7 +151,7 @@ class PoolingShardConnection extends Connection
{
$params
=
$this
->
getParams
();
return
isset
(
$params
[
'host'
])
?
$params
[
'host'
]
:
parent
::
getHost
();
return
$params
[
'host'
]
??
parent
::
getHost
();
}
/**
...
...
@@ -161,7 +161,7 @@ class PoolingShardConnection extends Connection
{
$params
=
$this
->
getParams
();
return
isset
(
$params
[
'port'
])
?
$params
[
'port'
]
:
parent
::
getPort
();
return
$params
[
'port'
]
??
parent
::
getPort
();
}
/**
...
...
@@ -171,7 +171,7 @@ class PoolingShardConnection extends Connection
{
$params
=
$this
->
getParams
();
return
isset
(
$params
[
'user'
])
?
$params
[
'user'
]
:
parent
::
getUsername
();
return
$params
[
'user'
]
??
parent
::
getUsername
();
}
/**
...
...
@@ -181,7 +181,7 @@ class PoolingShardConnection extends Connection
{
$params
=
$this
->
getParams
();
return
isset
(
$params
[
'password'
])
?
$params
[
'password'
]
:
parent
::
getPassword
();
return
$params
[
'password'
]
??
parent
::
getPassword
();
}
/**
...
...
tests/Doctrine/Tests/DBAL/Functional/Driver/AbstractDriverTest.php
View file @
34c4ddec
...
...
@@ -29,8 +29,8 @@ abstract class AbstractDriverTest extends DbalFunctionalTestCase
$params
=
$this
->
_conn
->
getParams
();
unset
(
$params
[
'dbname'
]);
$user
=
isset
(
$params
[
'user'
])
?
$params
[
'user'
]
:
null
;
$password
=
isset
(
$params
[
'password'
])
?
$params
[
'password'
]
:
null
;
$user
=
$params
[
'user'
]
??
null
;
$password
=
$params
[
'password'
]
??
null
;
$connection
=
$this
->
driver
->
connect
(
$params
,
$user
,
$password
);
...
...
tests/Doctrine/Tests/DBAL/Functional/Schema/SchemaManagerFunctionalTestCase.php
View file @
34c4ddec
...
...
@@ -66,8 +66,8 @@ class SchemaManagerFunctionalTestCase extends \Doctrine\Tests\DbalFunctionalTest
$params
[
'dbname'
]
=
'test_drop_database'
;
}
$user
=
isset
(
$params
[
'user'
])
?
$params
[
'user'
]
:
null
;
$password
=
isset
(
$params
[
'password'
])
?
$params
[
'password'
]
:
null
;
$user
=
$params
[
'user'
]
??
null
;
$password
=
$params
[
'password'
]
??
null
;
$connection
=
$this
->
_conn
->
getDriver
()
->
connect
(
$params
,
$user
,
$password
);
...
...
tests/Doctrine/Tests/DBAL/Functional/Schema/SqliteSchemaManagerTest.php
View file @
34c4ddec
...
...
@@ -39,8 +39,8 @@ class SqliteSchemaManagerTest extends SchemaManagerFunctionalTestCase
$params
=
$this
->
_conn
->
getParams
();
$params
[
'dbname'
]
=
'test_drop_database'
;
$user
=
isset
(
$params
[
'user'
])
?
$params
[
'user'
]
:
null
;
$password
=
isset
(
$params
[
'password'
])
?
$params
[
'password'
]
:
null
;
$user
=
$params
[
'user'
]
??
null
;
$password
=
$params
[
'password'
]
??
null
;
$connection
=
$this
->
_conn
->
getDriver
()
->
connect
(
$params
,
$user
,
$password
);
...
...
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