Skip to content

Commit

Permalink
phpstan & tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aschempp committed Jul 9, 2020
1 parent 2afd655 commit 37c4dda
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Expand Up @@ -894,9 +894,9 @@ public function testCanPasteAfterArticle(): void
}

/**
* @return BackendUser|FrontendUser|MockObject
* @return User&MockObject
*/
private function expectUser(string $userClass = BackendUser::class): User
private function expectUser(string $userClass = BackendUser::class)
{
/** @var User&MockObject $user */
$user = $this->mockClassWithProperties($userClass, ['id' => 1]);
Expand Down
3 changes: 1 addition & 2 deletions core-bundle/tests/Functional/RoutingTest.php
Expand Up @@ -74,10 +74,9 @@ public function testResolvesAliases(array $fixtures, string $request, int $statu
/**
* @dataProvider getAliases
*
* @legacy
* @group legacy
*
* @expectedDeprecation The Contao\CoreBundle\Routing\FrontendLoader is deprecated. Use Symfony routing instead.
* @expectedDeprecation The Contao\CoreBundle\Routing\UrlGenerator is deprecated. Use the Symfony router instead.
*/
public function testResolvesAliasesInLegacyMode(array $fixtures, string $request, int $statusCode, string $pageTitle, array $query, string $host, bool $autoItem): void
{
Expand Down

0 comments on commit 37c4dda

Please sign in to comment.