Skip to content

Commit

Permalink
Merge pull request #138 from packbackbooks/linting
Browse files Browse the repository at this point in the history
Lint
  • Loading branch information
dbhynds authored Apr 1, 2024
2 parents f0a7298 + 1999efc commit a4f6b05
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 0 additions & 5 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@ parameters:
paths:
- tests/*

-
message: "# \\(Mockery\\\\MockInterface\\) does not accept Mockery\\\\LegacyMockInterface\\.$#"
paths:
- tests/*

-
message: "#^Result of static method Packback\\\\Lti1p3\\\\MessageValidators\\\\[A-Za-z]+MessageValidator\\:\\:validate\\(\\) \\(void\\) is used\\.$#"
path: tests/MessageValidators/*
Expand Down
1 change: 1 addition & 0 deletions tests/LtiOidcLoginTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ public function testValidatesFailsIfRegistrationNotFound()

// Use an alias to mock LtiMessageLaunch::getMissingRegistrationErrorMsg()
$expectedError = 'Registration not found!';
// @phpstan-ignore-next-line
Mockery::mock('alias:'.LtiMessageLaunch::class)

Check failure on line 110 in tests/LtiOidcLoginTest.php

View workflow job for this annotation

GitHub Actions / Lint

No error to ignore is reported on line 110.
->shouldReceive('getMissingRegistrationErrorMsg')
->andReturn($expectedError);
Expand Down

0 comments on commit a4f6b05

Please sign in to comment.