Skip to content

Commit eed2c10

Browse files
committed
fixed deprecation notice
ignored phpstan errors
1 parent ee9f2e8 commit eed2c10

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

phpstan-baseline.neon

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,12 +436,12 @@ parameters:
436436
path: src/Console/DumpDatabaseCommand.php
437437

438438
-
439-
message: "#^Parameter \\#1 \\$em of method LaravelDoctrine\\\\ORM\\\\Console\\\\DumpDatabaseCommand\\:\\:dump\\(\\) expects string, array\\|bool\\|string\\|null given\\.$#"
439+
message: "#^Parameter \\#1 \\$em of method LaravelDoctrine\\\\ORM\\\\Console\\\\DumpDatabaseCommand\\:\\:dump\\(\\) expects string, array\\|string\\|true given\\.$#"
440440
count: 1
441441
path: src/Console/DumpDatabaseCommand.php
442442

443443
-
444-
message: "#^Parameter \\#2 \\$em of method LaravelDoctrine\\\\ORM\\\\Console\\\\DumpDatabaseCommand\\:\\:connect\\(\\) expects string, array\\|bool\\|string\\|null given\\.$#"
444+
message: "#^Parameter \\#2 \\$em of method LaravelDoctrine\\\\ORM\\\\Console\\\\DumpDatabaseCommand\\:\\:connect\\(\\) expects string, array\\|string\\|true given\\.$#"
445445
count: 1
446446
path: src/Console/DumpDatabaseCommand.php
447447

@@ -525,6 +525,14 @@ parameters:
525525
count: 3
526526
path: src/DoctrineServiceProvider.php
527527

528+
-
529+
message: """
530+
#^Call to method register\\(\\) of deprecated class Doctrine\\\\Common\\\\Proxy\\\\Autoloader\\:
531+
The Autoloader class is deprecated since doctrine/common 3\\.5\\.$#
532+
"""
533+
count: 1
534+
path: src/DoctrineServiceProvider.php
535+
528536
-
529537
message: "#^Call to static method create\\(\\) on an unknown class Faker\\\\Factory\\.$#"
530538
count: 1
@@ -1163,6 +1171,11 @@ parameters:
11631171
count: 1
11641172
path: src/Pagination/PaginatorAdapter.php
11651173

1174+
-
1175+
message: "#^Method LaravelDoctrine\\\\ORM\\\\Pagination\\\\PaginatorAdapter\\:\\:convertToLaravelPaginator\\(\\) return type with generic class Illuminate\\\\Pagination\\\\LengthAwarePaginator does not specify its types\\: TKey, TValue$#"
1176+
count: 1
1177+
path: src/Pagination/PaginatorAdapter.php
1178+
11661179
-
11671180
message: "#^Method LaravelDoctrine\\\\ORM\\\\Pagination\\\\PaginatorAdapter\\:\\:fromParams\\(\\) has parameter \\$queryParams with no value type specified in iterable type array\\.$#"
11681181
count: 1

src/Extensions/Extension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ interface Extension
1313
* @param EntityManagerInterface $em
1414
* @param Reader|null $reader
1515
*/
16-
public function addSubscribers(EventManager $manager, EntityManagerInterface $em, Reader $reader = null);
16+
public function addSubscribers(EventManager $manager, EntityManagerInterface $em, ?Reader $reader = null);
1717

1818
/**
1919
* @return array

0 commit comments

Comments
 (0)