Skip to content

Commit aff86dd

Browse files
authored
Merge pull request #566 from greg0ire/3.4.x
Merge 3.3.x up into 3.4.x
2 parents 2609656 + 4919b65 commit aff86dd

File tree

10 files changed

+32
-56
lines changed

10 files changed

+32
-56
lines changed

.gitattributes

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,3 @@ phpcs.xml.dist export-ignore
1010
phpstan.neon.dist export-ignore
1111
phpstan-baseline.neon export-ignore
1212
phpunit.xml.dist export-ignore
13-
psalm.xml export-ignore
14-
psalm-baseline.xml export-ignore

.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@5.0.1"
15+
uses: "doctrine/.github/.github/workflows/coding-standards.yml@7.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@5.0.1"
15+
uses: "doctrine/.github/.github/workflows/continuous-integration.yml@7.1.0"
1616
with:
1717
php-versions: '["7.2", "7.3", "7.4", "8.0", "8.1", "8.2", "8.3"]'
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@5.0.1"
23+
uses: "doctrine/.github/.github/workflows/continuous-integration-symfony-unstable.yml@7.1.0"
2424
with:
2525
symfony-version-constraint: "^7"
2626
secrets:

.github/workflows/release-on-milestone-closed.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
jobs:
99
release:
1010
name: "Git tag, release & create merge-up PR"
11-
uses: "doctrine/.github/.github/workflows/release-on-milestone-closed.yml@5.0.1"
11+
uses: "doctrine/.github/.github/workflows/release-on-milestone-closed.yml@7.1.0"
1212
secrets:
1313
GIT_AUTHOR_EMAIL: ${{ secrets.GIT_AUTHOR_EMAIL }}
1414
GIT_AUTHOR_NAME: ${{ secrets.GIT_AUTHOR_NAME }}

.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/static-analysis.yml@5.0.1"
15+
uses: "doctrine/.github/.github/workflows/phpstan.yml@7.1.0"

composer.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,8 @@
3737
"phpstan/phpstan-symfony": "^1.3",
3838
"doctrine/orm": "^2.6 || ^3",
3939
"doctrine/persistence": "^2.0 || ^3 ",
40-
"psalm/plugin-phpunit": "^0.18.4",
41-
"psalm/plugin-symfony": "^3 || ^5",
4240
"symfony/phpunit-bridge": "^6.3 || ^7",
43-
"symfony/var-exporter": "^5.4 || ^6 || ^7",
44-
"vimeo/psalm": "^4.30 || ^5.15"
41+
"symfony/var-exporter": "^5.4 || ^6 || ^7"
4542
},
4643
"autoload": {
4744
"psr-4": { "Doctrine\\Bundle\\MigrationsBundle\\": "src" }

docs/index.rst

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,11 @@ Here is an example on how to inject the service container into your migrations:
297297
this bundle will automatically inject the default symfony container into your migration class
298298
(this because the ``MigrationFactoryDecorator`` shown in this example is the default migration factory used by this bundle).
299299

300+
.. caution::
301+
302+
The interface ``Symfony\Component\DependencyInjection\ContainerAwareInterface`` has been deprecated in Symfony 6.4 and
303+
removed in 7.0. If you use this version or newer, there is currently no way to inject the service container into migrations.
304+
300305

301306
Generating Migrations Automatically
302307
-----------------------------------
@@ -311,6 +316,26 @@ for Doctrine's ORM:
311316

312317
.. configuration-block::
313318

319+
.. code-block:: php-attributes
320+
321+
// src/Entity/User.php
322+
namespace App\Entity;
323+
324+
use Doctrine\DBAL\Types\Types;
325+
use Doctrine\ORM\Mapping as ORM;
326+
327+
#[Entity]
328+
#[Table(name: 'user')]
329+
class User
330+
{
331+
#[ORM\Id]
332+
#[ORM\GeneratedValue(strategy: 'AUTO')]
333+
#[ORM\Column(type: Types:INT)]
334+
private $id;
335+
336+
#[ORM\Column(type: Types:STRING, length: 255)]
337+
private $name;
338+
314339
.. code-block:: php-annotations
315340
316341
// src/Entity/User.php

psalm-baseline.xml

Lines changed: 0 additions & 21 deletions
This file was deleted.

psalm.xml

Lines changed: 0 additions & 23 deletions
This file was deleted.

tests/DependencyInjection/DoctrineCommandsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function testCommandRegistered(string $name, string $instance): void
5151

5252
/**
5353
* @return string[][]
54-
* @psalm-return list<array{string, class-string<DoctrineCommand>}>
54+
* @phpstan-return list<array{string, class-string<DoctrineCommand>}>
5555
*/
5656
public function getCommands(): array
5757
{

0 commit comments

Comments
 (0)