Skip to content

Commit d0ff7f9

Browse files
authored
Merge pull request #835 from doctrine/prepare-release
test with php 8.2
2 parents 1687033 + 586755b commit d0ff7f9

16 files changed

+37
-24
lines changed

.github/workflows/test-application.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
- '7.4'
3434
- '8.0'
3535
- '8.1'
36+
- '8.2'
3637
dependencies: [highest]
3738
symfony-version: ['*']
3839
include:

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ Changelog
44
1.x
55
===
66

7+
1.7.1
8+
-----
9+
10+
* Test with PHP 8.2
11+
* Allow installation with Doctrine Annotations 2, Collections 2 and EventManager 2.
12+
713
1.7.0
814
-----
915

lib/Doctrine/ODM/PHPCR/DocumentManager.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,11 @@ class DocumentManager implements DocumentManagerInterface
106106
*/
107107
protected $localeChooserStrategy;
108108

109+
/**
110+
* @var ValueConverter
111+
*/
112+
private $valueConverter;
113+
109114
public function __construct(SessionInterface $session, Configuration $config = null, EventManager $evm = null)
110115
{
111116
$this->session = $session;

lib/Doctrine/ODM/PHPCR/Query/Builder/ConstraintChild.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,16 @@
1010
*/
1111
class ConstraintChild extends AbstractLeafNode
1212
{
13+
/**
14+
* @var string
15+
*/
16+
private $alias;
17+
18+
/**
19+
* @var string
20+
*/
21+
private $parentPath;
22+
1323
public function __construct(AbstractNode $parent, $alias, $parentPath)
1424
{
1525
$this->alias = $alias;

tests/Doctrine/Tests/ODM/PHPCR/Functional/CascadePersistTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class CascadePersistTest extends PHPCRFunctionalTestCase
2121
public function setUp(): void
2222
{
2323
$this->dm = $this->createDocumentManager([__DIR__]);
24-
$this->node = $this->resetFunctionalNode($this->dm);
24+
$this->resetFunctionalNode($this->dm);
2525

2626
$class = $this->dm->getClassMetadata(CmsUser::class);
2727
$class->mappings['groups']['cascade'] = ClassMetadata::CASCADE_PERSIST;

tests/Doctrine/Tests/ODM/PHPCR/Functional/CascadeRefreshTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class CascadeRefreshTest extends PHPCRFunctionalTestCase
1919
public function setUp(): void
2020
{
2121
$this->dm = $this->createDocumentManager([__DIR__]);
22-
$this->node = $this->resetFunctionalNode($this->dm);
22+
$this->resetFunctionalNode($this->dm);
2323

2424
$class = $this->dm->getClassMetadata(CmsUser::class);
2525
$class->mappings['groups']['cascade'] = ClassMetadata::CASCADE_REFRESH;

tests/Doctrine/Tests/ODM/PHPCR/Functional/CascadeRemoveTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class CascadeRemoveTest extends PHPCRFunctionalTestCase
1919
public function setUp(): void
2020
{
2121
$this->dm = $this->createDocumentManager([__DIR__]);
22-
$this->node = $this->resetFunctionalNode($this->dm);
22+
$this->resetFunctionalNode($this->dm);
2323

2424
$class = $this->dm->getClassMetadata(CmsUser::class);
2525
$class->mappings['groups']['cascade'] = ClassMetadata::CASCADE_REMOVE;

tests/Doctrine/Tests/ODM/PHPCR/Functional/ChangesetCalculationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function setUp(): void
2727
$this->listener = new ChangesetListener();
2828
$this->dm = $this->createDocumentManager();
2929
$this->dm->setLocaleChooserStrategy(new LocaleChooser(['en' => ['fr'], 'fr' => ['en']], 'en'));
30-
$this->node = $this->resetFunctionalNode($this->dm);
30+
$this->resetFunctionalNode($this->dm);
3131
}
3232

3333
public function testComputeChangeset()

tests/Doctrine/Tests/ODM/PHPCR/Functional/EventComputingTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ public function testComputingBetweenEventsWithTranslation(): void
149149
// name has been changed when translation was updated
150150
$this->assertEquals('preUpdateTranslation', $user->name);
151151

152-
$this->dm->name = 'neuer Name';
152+
$user->name = 'neuer Name';
153153
$this->dm->bindTranslation($user, 'de');
154154

155155
$this->dm->flush();

tests/Doctrine/Tests/ODM/PHPCR/Functional/EventObjectUpdateTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ public function setUp(): void
2424
{
2525
$this->listener = new TestEventDocumentChanger2();
2626
$this->dm = $this->createDocumentManager();
27-
$this->node = $this->resetFunctionalNode($this->dm);
2827
}
2928

3029
public function testComputingBetweenEvents(): void

0 commit comments

Comments
 (0)