Skip to content

Commit dc2f238

Browse files
author
roadiz-ci
committed
Merge branch hotfix/v2.7.18
1 parent 7b8951e commit dc2f238

7 files changed

Lines changed: 29 additions & 23 deletions

File tree

composer.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,18 @@
2222
"doctrine/orm": "~2.20.0",
2323
"api-platform/doctrine-orm": "^4.1.18",
2424
"api-platform/metadata": "^4.1.18",
25-
"roadiz/nodetype-contracts": "^3.0.0",
26-
"symfony/string": "7.3.*",
25+
"roadiz/nodetype-contracts": "^3.1.1",
26+
"symfony/string": "7.4.*",
2727
"symfony/translation-contracts": "^3.0",
28-
"symfony/http-foundation": "7.3.*",
29-
"symfony/serializer": "7.3.*",
30-
"symfony/uid": "7.3.*",
31-
"symfony/validator": "7.3.*"
28+
"symfony/http-foundation": "7.4.*",
29+
"symfony/serializer": "7.4.*",
30+
"symfony/uid": "7.4.*",
31+
"symfony/validator": "7.4.*"
3232
},
3333
"require-dev": {
3434
"doctrine/doctrine-bundle": "^2.8.1",
3535
"php-coveralls/php-coveralls": "^2.4",
36-
"phpstan/phpstan": "^1.5.3",
36+
"phpstan/phpstan": "^2.1.36",
3737
"phpstan/phpdoc-parser": "<2",
3838
"phpunit/phpunit": "^9.6"
3939
},
@@ -55,8 +55,8 @@
5555
},
5656
"extra": {
5757
"branch-alias": {
58-
"dev-master": "2.6.x-dev",
59-
"dev-develop": "2.7.x-dev"
58+
"dev-master": "2.7.x-dev",
59+
"dev-develop": "2.8.x-dev"
6060
}
6161
}
6262
}

src/Core/AbstractEntities/DateTimedInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ public function getCreatedAt(): ?\DateTime;
1111
/**
1212
* @return $this
1313
*/
14-
public function setCreatedAt(?\DateTime $createdAt): self;
14+
public function setCreatedAt(?\DateTime $createdAt): static;
1515

1616
public function getUpdatedAt(): ?\DateTime;
1717

1818
/**
1919
* @return $this
2020
*/
21-
public function setUpdatedAt(?\DateTime $updatedAt): self;
21+
public function setUpdatedAt(?\DateTime $updatedAt): static;
2222
}

src/Core/AbstractEntities/DateTimedTrait.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function getCreatedAt(): ?\DateTime
2525
/**
2626
* @return $this
2727
*/
28-
public function setCreatedAt(?\DateTime $createdAt): self
28+
public function setCreatedAt(?\DateTime $createdAt): static
2929
{
3030
$this->createdAt = $createdAt;
3131

@@ -40,7 +40,7 @@ public function getUpdatedAt(): ?\DateTime
4040
/**
4141
* @return $this
4242
*/
43-
public function setUpdatedAt(?\DateTime $updatedAt): self
43+
public function setUpdatedAt(?\DateTime $updatedAt): static
4444
{
4545
$this->updatedAt = $updatedAt;
4646

@@ -71,7 +71,7 @@ public function prePersist(): void
7171
*
7272
* @return $this
7373
*/
74-
public function resetDates(): self
74+
public function resetDates(): static
7575
{
7676
$this->setCreatedAt(new \DateTime('now'));
7777
$this->setUpdatedAt(new \DateTime('now'));

src/Core/AbstractEntities/LeafInterface.php

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,25 @@
66

77
use Doctrine\Common\Collections\Collection;
88

9+
/**
10+
* @template TSelf of LeafInterface
11+
*/
912
interface LeafInterface extends PositionedInterface
1013
{
14+
/**
15+
* @return Collection<int, TSelf>
16+
*/
1117
public function getChildren(): Collection;
1218

1319
/**
14-
* @param static $child
20+
* @param TSelf $child
1521
*
1622
* @return $this
1723
*/
1824
public function addChild(LeafInterface $child): static;
1925

2026
/**
21-
* @param static $child
27+
* @param TSelf $child
2228
*
2329
* @return $this
2430
*/
@@ -27,16 +33,18 @@ public function removeChild(LeafInterface $child): static;
2733
/**
2834
* Do not add static return type because of Doctrine Proxy.
2935
*
30-
* @return static|null
36+
* @return TSelf|null
3137
*/
3238
public function getParent(): ?LeafInterface;
3339

3440
/**
35-
* @return static[]
41+
* @return TSelf[]
3642
*/
3743
public function getParents(): array;
3844

3945
/**
46+
* @param TSelf|null $parent
47+
*
4048
* @return $this
4149
*/
4250
public function setParent(?LeafInterface $parent = null): static;

src/Core/AbstractEntities/LeafTrait.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,8 @@ public function removeChild(LeafInterface $child): static
6161
/*
6262
* Do not add static return type because of Doctrine Proxy.
6363
*/
64-
/**
65-
* @return static|null
66-
*/
6764
public function getParent(): ?LeafInterface
6865
{
69-
/* @phpstan-ignore-next-line */
7066
return $this->parent;
7167
}
7268

src/Core/AbstractEntities/PositionedInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ public function getPosition(): float;
1414
* Set position as a float to enable increment and decrement by O.5
1515
* to insert an entity between two others.
1616
*
17+
* Do not add static return type because of Doctrine Proxy.
18+
*
1719
* @return $this
1820
*/
1921
public function setPosition(float $newPosition): PositionedInterface;

src/Core/AbstractEntities/UuidTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function getId(): ?Uuid
2727
/**
2828
* @return $this
2929
*/
30-
public function setId(?Uuid $id): self
30+
public function setId(?Uuid $id): static
3131
{
3232
$this->id = $id;
3333

0 commit comments

Comments
 (0)