Skip to content

Commit f6dde52

Browse files
authored
Fixed issues found by by PHPStan (#433)
* Fixed incorrect property assignment in BasicContentContext constructor * [PHPStan] Regenerated baseline after PHPStan release
1 parent 6652a62 commit f6dde52

File tree

3 files changed

+1
-11
lines changed

3 files changed

+1
-11
lines changed

phpstan-baseline-7.4.neon

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,6 @@ parameters:
1515
count: 1
1616
path: src/bundle/Core/Command/CleanupVersionsCommand.php
1717

18-
-
19-
message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, array\\|iterable\\<Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\Values\\\\Content\\\\VersionInfo\\> given\\.$#"
20-
count: 1
21-
path: src/bundle/Core/Command/CleanupVersionsCommand.php
22-
2318
-
2419
message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, iterable\\<Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\Values\\\\Content\\\\VersionInfo\\> given\\.$#"
2520
count: 1

phpstan-baseline-gte-8.0.neon

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,6 @@ parameters:
1515
count: 1
1616
path: src/bundle/Core/Command/CleanupVersionsCommand.php
1717

18-
-
19-
message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, array\\|iterable\\<Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\Values\\\\Content\\\\VersionInfo\\> given\\.$#"
20-
count: 1
21-
path: src/bundle/Core/Command/CleanupVersionsCommand.php
22-
2318
-
2419
message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, iterable\\<Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\Values\\\\Content\\\\VersionInfo\\> given\\.$#"
2520
count: 1

src/bundle/Core/Features/Context/BasicContentContext.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function __construct(
4141
ContentTypeService $contentTypeService,
4242
ContentService $contentService
4343
) {
44-
$this->$repository = $repository;
44+
$this->repository = $repository;
4545
$this->contentTypeService = $contentTypeService;
4646
$this->contentService = $contentService;
4747
}

0 commit comments

Comments
 (0)