diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 2cbbb96c..1ff8605b 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -436,12 +436,12 @@ parameters: path: src/Console/DumpDatabaseCommand.php - - message: "#^Parameter \\#1 \\$em of method LaravelDoctrine\\\\ORM\\\\Console\\\\DumpDatabaseCommand\\:\\:dump\\(\\) expects string, array\\|bool\\|string\\|null given\\.$#" + message: "#^Parameter \\#1 \\$em of method LaravelDoctrine\\\\ORM\\\\Console\\\\DumpDatabaseCommand\\:\\:dump\\(\\) expects string, array\\|string\\|true given\\.$#" count: 1 path: src/Console/DumpDatabaseCommand.php - - message: "#^Parameter \\#2 \\$em of method LaravelDoctrine\\\\ORM\\\\Console\\\\DumpDatabaseCommand\\:\\:connect\\(\\) expects string, array\\|bool\\|string\\|null given\\.$#" + message: "#^Parameter \\#2 \\$em of method LaravelDoctrine\\\\ORM\\\\Console\\\\DumpDatabaseCommand\\:\\:connect\\(\\) expects string, array\\|string\\|true given\\.$#" count: 1 path: src/Console/DumpDatabaseCommand.php @@ -525,6 +525,14 @@ parameters: count: 3 path: src/DoctrineServiceProvider.php + - + message: """ + #^Call to method register\\(\\) of deprecated class Doctrine\\\\Common\\\\Proxy\\\\Autoloader\\: + The Autoloader class is deprecated since doctrine/common 3\\.5\\.$# + """ + count: 1 + path: src/DoctrineServiceProvider.php + - message: "#^Call to static method create\\(\\) on an unknown class Faker\\\\Factory\\.$#" count: 1 @@ -1163,6 +1171,11 @@ parameters: count: 1 path: src/Pagination/PaginatorAdapter.php + - + message: "#^Method LaravelDoctrine\\\\ORM\\\\Pagination\\\\PaginatorAdapter\\:\\:convertToLaravelPaginator\\(\\) return type with generic class Illuminate\\\\Pagination\\\\LengthAwarePaginator does not specify its types\\: TKey, TValue$#" + count: 1 + path: src/Pagination/PaginatorAdapter.php + - message: "#^Method LaravelDoctrine\\\\ORM\\\\Pagination\\\\PaginatorAdapter\\:\\:fromParams\\(\\) has parameter \\$queryParams with no value type specified in iterable type array\\.$#" count: 1 diff --git a/src/Extensions/Extension.php b/src/Extensions/Extension.php index ee18d021..347a2010 100644 --- a/src/Extensions/Extension.php +++ b/src/Extensions/Extension.php @@ -13,7 +13,7 @@ interface Extension * @param EntityManagerInterface $em * @param Reader|null $reader */ - public function addSubscribers(EventManager $manager, EntityManagerInterface $em, Reader $reader = null); + public function addSubscribers(EventManager $manager, EntityManagerInterface $em, ?Reader $reader = null); /** * @return array