Skip to content

Commit

Permalink
Merge branch '2.13.x' into 3.2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
morozov committed Dec 6, 2021
2 parents 141daa5 + b0404da commit 2aec3f8
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 10 deletions.
28 changes: 26 additions & 2 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,24 @@ jobs:
php-version:
- "7.4"
- "8.1"
oracle-version:
- "21"
include:
- php-version: "7.4"
oracle-version: "11"

services:
oracle:
image: "wnameless/oracle-xe-11g-r2"
image: gvenzl/oracle-xe:${{ matrix.oracle-version }}
env:
ORACLE_PASSWORD: oracle
ports:
- "1521:1521"
options: >-
--health-cmd healthcheck.sh
--health-interval 20s
--health-timeout 10s
--health-retries 10
steps:
- name: "Checkout"
Expand Down Expand Up @@ -112,12 +124,24 @@ jobs:
php-version:
- "7.4"
- "8.1"
oracle-version:
- "21"
include:
- php-version: "7.4"
oracle-version: "11"

services:
oracle:
image: "wnameless/oracle-xe-11g-r2"
image: gvenzl/oracle-xe:${{ matrix.oracle-version }}
env:
ORACLE_PASSWORD: oracle
ports:
- "1521:1521"
options: >-
--health-cmd healthcheck.sh
--health-interval 20s
--health-timeout 10s
--health-retries 10
steps:
- name: "Checkout"
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"squizlabs/php_codesniffer": "3.6.1",
"symfony/cache": "^5.2|^6.0",
"symfony/console": "^2.0.5|^3.0|^4.0|^5.0|^6.0",
"vimeo/psalm": "4.13.0"
"vimeo/psalm": "4.14.0"
},
"suggest": {
"symfony/console": "For helpful console commands such as SQL execution and import of files."
Expand Down
2 changes: 1 addition & 1 deletion docs/en/reference/events.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ instance.
Doctrine ships with one implementation for the "PostConnect" event:

- ``Doctrine\DBAL\Event\Listeners\OracleSessionInit`` allows to
specify any number of Oracle Session related enviroment variables
specify any number of Oracle Session related environment variables
that are set right after the connection is established.

You can register events by subscribing them to the ``EventManager``
Expand Down
2 changes: 2 additions & 0 deletions src/DriverManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
* platform?: Platforms\AbstractPlatform,
* port?: int,
* user?: string,
* unix_socket?: string,
* }
* @psalm-type Params = array{
* charset?: string,
Expand All @@ -64,6 +65,7 @@
* slaves?: array<OverrideParams>,
* user?: string,
* wrapperClass?: class-string<Connection>,
* unix_socket?: string,
* }
*/
final class DriverManager
Expand Down
5 changes: 2 additions & 3 deletions src/Schema/MySQLSchemaManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

use function array_change_key_case;
use function array_shift;
use function array_values;
use function assert;
use function explode;
use function is_string;
Expand Down Expand Up @@ -315,9 +314,9 @@ protected function _getPortableTableForeignKeysList($tableForeignKeys)
$result = [];
foreach ($list as $constraint) {
$result[] = new ForeignKeyConstraint(
array_values($constraint['local']),
$constraint['local'],
$constraint['foreignTable'],
array_values($constraint['foreign']),
$constraint['foreign'],
$constraint['name'],
[
'onDelete' => $constraint['onDelete'],
Expand Down
5 changes: 2 additions & 3 deletions src/Schema/SqliteSchemaManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
use function array_map;
use function array_merge;
use function array_reverse;
use function array_values;
use function explode;
use function file_exists;
use function preg_match;
Expand Down Expand Up @@ -455,9 +454,9 @@ protected function _getPortableTableForeignKeysList($tableForeignKeys)
$result = [];
foreach ($list as $constraint) {
$result[] = new ForeignKeyConstraint(
array_values($constraint['local']),
$constraint['local'],
$constraint['foreignTable'],
array_values($constraint['foreign']),
$constraint['foreign'],
$constraint['name'],
[
'onDelete' => $constraint['onDelete'],
Expand Down

0 comments on commit 2aec3f8

Please sign in to comment.