Fix phpstan issues

This commit is contained in:
sephster committed 2019-07-01 19:17:43 +01:00
1 parent 7bc1ec643e
commit c4c354e2df
15 files changed
+79 -46

No files matched your search

+3 -1
View File
@@ -85,7 +85,9 @@ class OAuthServerExceptionTest extends TestCase
$previous = new Exception('This is the previous');
$exceptionWithPrevious = OAuthServerException::accessDenied(null, null, $previous);
$this->assertSame('This is the previous', $exceptionWithPrevious->getPrevious()->getMessage());
$previousMessage = $exceptionWithPrevious->getPrevious() !== null ? $exceptionWithPrevious->getPrevious()->getMessage() : null;
$this->assertSame('This is the previous', $previousMessage);
}
public function testDoesNotHavePrevious()