Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
parameters:
level: 1
ignoreErrors:
-
identifier: new.static
paths:
- src
4 changes: 2 additions & 2 deletions src/Connection/ImapConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ protected function assertTaggedResponse(string $tag, ?callable $exception = null
*
* @template T of Response
*
* @param callable(Response): bool $filter
* @param callable(T): bool $filter
* @return T
*/
protected function assertNextResponse(callable $filter, callable $assertion, callable $exception): Response
Expand All @@ -740,7 +740,7 @@ protected function assertNextResponse(callable $filter, callable $assertion, cal
*
* @template T of Response
*
* @param callable(Response): bool $filter
* @param callable(T): bool $filter
* @return T
*/
protected function nextResponse(callable $filter): Response
Expand Down
2 changes: 1 addition & 1 deletion src/Support/ForwardsCalls.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ protected function forwardCallTo(object $object, string $method, array $paramete
/**
* Throw a bad method call exception for the given method.
*/
protected static function throwBadMethodCallException(string $method)
protected static function throwBadMethodCallException(string $method): never
{
throw new BadMethodCallException(sprintf(
'Call to undefined method %s::%s()', static::class, $method
Expand Down