Skip to content

Commit 76c2986

Browse files
author
roadiz-ci
committed
chore: bumped
1 parent e19b4c3 commit 76c2986

7 files changed

Lines changed: 23 additions & 29 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.1.1",
26-
"symfony/string": "7.4.*",
25+
"roadiz/nodetype-contracts": "^3.0.0",
26+
"symfony/string": "7.3.*",
2727
"symfony/translation-contracts": "^3.0",
28-
"symfony/http-foundation": "7.4.*",
29-
"symfony/serializer": "7.4.*",
30-
"symfony/uid": "7.4.*",
31-
"symfony/validator": "7.4.*"
28+
"symfony/http-foundation": "7.3.*",
29+
"symfony/serializer": "7.3.*",
30+
"symfony/uid": "7.3.*",
31+
"symfony/validator": "7.3.*"
3232
},
3333
"require-dev": {
3434
"doctrine/doctrine-bundle": "^2.8.1",
3535
"php-coveralls/php-coveralls": "^2.4",
36-
"phpstan/phpstan": "^2.1.36",
36+
"phpstan/phpstan": "^1.5.3",
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.7.x-dev",
59-
"dev-develop": "2.8.x-dev"
58+
"dev-master": "2.6.x-dev",
59+
"dev-develop": "2.7.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): static;
14+
public function setCreatedAt(?\DateTime $createdAt): self;
1515

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

1818
/**
1919
* @return $this
2020
*/
21-
public function setUpdatedAt(?\DateTime $updatedAt): static;
21+
public function setUpdatedAt(?\DateTime $updatedAt): self;
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): static
28+
public function setCreatedAt(?\DateTime $createdAt): self
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): static
43+
public function setUpdatedAt(?\DateTime $updatedAt): self
4444
{
4545
$this->updatedAt = $updatedAt;
4646

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

src/Core/AbstractEntities/LeafInterface.php

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

77
use Doctrine\Common\Collections\Collection;
88

9-
/**
10-
* @template TSelf of LeafInterface
11-
*/
129
interface LeafInterface extends PositionedInterface
1310
{
14-
/**
15-
* @return Collection<int, TSelf>
16-
*/
1711
public function getChildren(): Collection;
1812

1913
/**
20-
* @param TSelf $child
14+
* @param static $child
2115
*
2216
* @return $this
2317
*/
2418
public function addChild(LeafInterface $child): static;
2519

2620
/**
27-
* @param TSelf $child
21+
* @param static $child
2822
*
2923
* @return $this
3024
*/
@@ -33,18 +27,16 @@ public function removeChild(LeafInterface $child): static;
3327
/**
3428
* Do not add static return type because of Doctrine Proxy.
3529
*
36-
* @return TSelf|null
30+
* @return static|null
3731
*/
3832
public function getParent(): ?LeafInterface;
3933

4034
/**
41-
* @return TSelf[]
35+
* @return static[]
4236
*/
4337
public function getParents(): array;
4438

4539
/**
46-
* @param TSelf|null $parent
47-
*
4840
* @return $this
4941
*/
5042
public function setParent(?LeafInterface $parent = null): static;

src/Core/AbstractEntities/LeafTrait.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,12 @@ 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+
*/
6467
public function getParent(): ?LeafInterface
6568
{
69+
/* @phpstan-ignore-next-line */
6670
return $this->parent;
6771
}
6872

src/Core/AbstractEntities/PositionedInterface.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ 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-
*
1917
* @return $this
2018
*/
2119
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): static
30+
public function setId(?Uuid $id): self
3131
{
3232
$this->id = $id;
3333

0 commit comments

Comments
 (0)