Skip to content

Commit ddb366b

Browse files
authored
Merge pull request #654 from doctrine/3.7.x
Merge 3.7.x up into 3.8.x
2 parents da4b334 + e0569c1 commit ddb366b

File tree

7 files changed

+19
-9
lines changed

7 files changed

+19
-9
lines changed

.github/workflows/coding-standards.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ on:
1212
jobs:
1313
coding-standards:
1414
name: "Coding Standards"
15-
uses: "doctrine/.github/.github/workflows/coding-standards.yml@13.0.0"
15+
uses: "doctrine/.github/.github/workflows/coding-standards.yml@13.1.0"

.github/workflows/composer-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ on:
1717
jobs:
1818
composer-lint:
1919
name: "Composer Lint"
20-
uses: "doctrine/.github/.github/workflows/composer-lint.yml@13.0.0"
20+
uses: "doctrine/.github/.github/workflows/composer-lint.yml@13.1.0"

.github/workflows/continuous-integration.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ on:
1212
jobs:
1313
phpunit:
1414
name: "PHPUnit"
15-
uses: "doctrine/.github/.github/workflows/continuous-integration.yml@v12.2.0"
15+
uses: "doctrine/.github/.github/workflows/continuous-integration.yml@13.1.0"
1616
with:
1717
php-versions: '["7.2", "7.3", "7.4", "8.0", "8.1", "8.2", "8.3", "8.4"]'
1818
secrets:
1919
CODECOV_TOKEN: "${{ secrets.CODECOV_TOKEN }}"
2020

2121
phpunit-with-dev-deps:
2222
name: "PHPUnit with dev dependencies"
23-
uses: "doctrine/.github/.github/workflows/continuous-integration-symfony-unstable.yml@13.0.0"
23+
uses: "doctrine/.github/.github/workflows/continuous-integration-symfony-unstable.yml@13.1.0"
2424
with:
2525
symfony-version-constraint: "^7"
2626
secrets:

.github/workflows/static-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ on:
1212
jobs:
1313
static-analysis:
1414
name: "Static Analysis"
15-
uses: "doctrine/.github/.github/workflows/phpstan.yml@13.0.0"
15+
uses: "doctrine/.github/.github/workflows/phpstan.yml@13.1.0"

composer.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,18 @@
2525
"homepage": "https://www.doctrine-project.org",
2626
"require": {
2727
"php": "^7.2 || ^8.0",
28+
"doctrine/dbal": "^2 || ^3 || ^4",
2829
"doctrine/doctrine-bundle": "^2.4 || ^3.0",
2930
"doctrine/migrations": "^3.2",
31+
"psr/log": "^1 || ^2 || ^3",
32+
"symfony/config": "^5.4 || ^6.0 || ^7.0 || ^8.0",
33+
"symfony/console": "^5.4 || ^6.0 || ^7.0 || ^8.0",
34+
"symfony/dependency-injection": "^5.4 || ^6.0 || ^7.0 || ^8.0",
3035
"symfony/deprecation-contracts": "^2.1 || ^3",
3136
"symfony/framework-bundle": "^5.4 || ^6.0 || ^7.0 || ^8.0",
32-
"symfony/http-kernel": "^5.4 || ^6.0 || ^7.0"
37+
"symfony/http-foundation": "^5.4 || ^6.0 || ^7.0 || ^8.0",
38+
"symfony/http-kernel": "^5.4 || ^6.0 || ^7.0",
39+
"symfony/service-contracts": "^1.0 || ^2.0 || ^3.0"
3340
},
3441
"require-dev": {
3542
"composer/semver": "^3.0",

phpstan.neon.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
parameters:
22
level: 7
3-
phpVersion: 80400
3+
phpVersion: 80500
44
paths:
55
- src
66
- tests

src/EventListener/SchemaFilterListener.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
namespace Doctrine\Bundle\MigrationsBundle\EventListener;
66

77
use Doctrine\DBAL\Schema\AbstractAsset;
8+
use Doctrine\DBAL\Schema\AbstractNamedObject;
89
use Doctrine\DBAL\Schema\Name\OptionallyQualifiedName;
910
use Doctrine\ORM\Tools\Console\Command\SchemaTool\UpdateCommand;
1011
use Doctrine\ORM\Tools\Console\Command\ValidateSchemaCommand;
@@ -28,15 +29,17 @@ public function __construct(string $configurationTableName)
2829
/** @var bool */
2930
private $enabled = false;
3031

31-
/** @param AbstractAsset<OptionallyQualifiedName>|string $asset */
32+
/** @param AbstractAsset<OptionallyQualifiedName>|AbstractNamedObject<OptionallyQualifiedName>|string $asset */
3233
public function __invoke($asset): bool
3334
{
3435
if (! $this->enabled) {
3536
return true;
3637
}
3738

3839
if ($asset instanceof AbstractAsset) {
39-
$asset = $asset->getName();
40+
$asset = $asset instanceof AbstractNamedObject
41+
? $asset->getObjectName()->toString()
42+
: $asset->getName();
4043
}
4144

4245
return $asset !== $this->configurationTableName;

0 commit comments

Comments
 (0)