Skip to content

Commit 783c183

Browse files
formatting
1 parent dd25bfe commit 783c183

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

tests/Grant/DeviceCodeGrantTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ public function testRespondToAccessTokenRequest(): void
347347
$deviceCodeEntity->setClient($client);
348348
$deviceCodeEntity->addScope($scope);
349349

350-
$deviceCodeRepositoryMock->expects(self::once())->method('getDeviceCodeEntityByDeviceCode')
350+
$deviceCodeRepositoryMock->expects(self::atLeast(1))->method('getDeviceCodeEntityByDeviceCode')
351351
->with($deviceCodeEntity->getIdentifier())
352352
->willReturn($deviceCodeEntity);
353353

tests/PHPStan/AbstractGrantExtension.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method
3636
{
3737
return TypeCombinator::union(...[
3838
new StringType(),
39-
// @phpstan-ignore property.notFound
40-
isset($methodCall->getArgs[2]) ? $scope->getType($methodCall->getArgs[2]->value) : new NullType(),
39+
property_exists($methodCall, 'getArgs') && isset($methodCall->getArgs[2]) ? $scope->getType($methodCall->getArgs[2]->value) : new NullType(),
4140
]);
4241
}
4342
}

0 commit comments

Comments
 (0)