Skip to content

Commit 3442c67

Browse files
committed
Fix phpstan errors
1 parent a5e1a4f commit 3442c67

File tree

3 files changed

+1
-19
lines changed

3 files changed

+1
-19
lines changed

phpstan-baseline.neon

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,6 @@ parameters:
5454
count: 1
5555
path: src/Model/FavoriteManager.php
5656

57-
-
58-
message: '#^Parameter \#1 \$ids of method App\\Entity\\PackageRepository\:\:getPackagesWithVersions\(\) expects list\<int\>\|null, array\<int\<0, max\>, int\> given\.$#'
59-
identifier: argument.type
60-
count: 1
61-
path: src/Package/SymlinkDumper.php
62-
6357
-
6458
message: '#^Parameter \#1 \$conflict of method App\\Entity\\Version\:\:addConflictLink\(\) expects App\\Entity\\ConflictLink, App\\Entity\\ConflictLink\|App\\Entity\\DevRequireLink\|App\\Entity\\ProvideLink\|App\\Entity\\ReplaceLink\|App\\Entity\\RequireLink given\.$#'
6559
identifier: argument.type
@@ -90,12 +84,6 @@ parameters:
9084
count: 1
9185
path: src/Package/Updater.php
9286

93-
-
94-
message: '#^Parameter \#1 \$ids of method App\\Entity\\PackageRepository\:\:getPackagesWithVersions\(\) expects list\<int\>\|null, array\<int\<0, max\>, int\> given\.$#'
95-
identifier: argument.type
96-
count: 1
97-
path: src/Package/V2Dumper.php
98-
9987
-
10088
message: '#^Parameter \#1 \$job of method App\\Service\\GitHubUserMigrationWorker\:\:process\(\) expects App\\Entity\\Job\<array\{id\: int, update_equal_refs\: bool, delete_before\: bool, force_dump\: bool, source\: string\}\>\|App\\Entity\\Job\<array\{id\: int, old_scope\: string, new_scope\: string\}\>\|App\\Entity\\Job\<array\{source\: string\}\>, App\\Entity\\Job\<array\<string, bool\|int\|string\>\> given\.$#'
10189
identifier: argument.type

src/Entity/Download.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public function setDataPoint(string $key, int $value): void
9393
}
9494

9595
/**
96-
* @return array<int, int> Key is "YYYYMMDD" which means it always gets converted to an int by php
96+
* @return array<int|numeric-string, int> Key is "YYYYMMDD" which means it always gets converted to an int by php
9797
*/
9898
public function getData(): array
9999
{

symfony.lock

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -368,12 +368,6 @@
368368
"sebastian/cli-parser": {
369369
"version": "1.0.1"
370370
},
371-
"sebastian/code-unit": {
372-
"version": "1.0.8"
373-
},
374-
"sebastian/code-unit-reverse-lookup": {
375-
"version": "2.0.3"
376-
},
377371
"sebastian/comparator": {
378372
"version": "4.0.6"
379373
},

0 commit comments

Comments
 (0)