diff --git a/packages/EasyBankFiles/tests/Parsers/TestCase.php b/packages/EasyBankFiles/tests/Parsers/TestCase.php index 38dfb2601..c6bd18462 100644 --- a/packages/EasyBankFiles/tests/Parsers/TestCase.php +++ b/packages/EasyBankFiles/tests/Parsers/TestCase.php @@ -14,6 +14,10 @@ abstract class TestCase extends BaseTestCase { /** * Get mock for given class and set expectations based on given callable. + * + * @template T of object + * + * @param class-string $class */ protected function getMockWithExpectations(string $class, callable $setExpectations): LegacyMockInterface { diff --git a/quality/phpstan.neon b/quality/phpstan.neon index da48ebfa0..36d2ea872 100644 --- a/quality/phpstan.neon +++ b/quality/phpstan.neon @@ -62,8 +62,6 @@ parameters: path: %currentWorkingDirectory%/packages/EasyApiToken/src/External/FirebaseJwtDriver.php # ---- EasyAsync ---- - - message: '#Method EonX\\EasyAsync\\Tests\\AbstractTestCase::mock\(\) should return Mockery\\MockInterface but returns Mockery\\LegacyMockInterface.#' - path: %currentWorkingDirectory%/packages/EasyAsync/tests # ---- EasyBankFiles ---- - message: '#Call to an undefined method object\:\:getTransactionCodeDetails\(\)#' @@ -124,9 +122,6 @@ parameters: - message: '#Call to an undefined method Illuminate\\Database\\Eloquent\\Model::find\(\).#' path: %currentWorkingDirectory%/packages/EasyRepository/src/Implementations/Illuminate - - message: '#Method EonX\\EasyRepository\\Tests\\Implementation\\Illuminate\\EloquentRepositoryStub::getModel\(\) should return Illuminate\\Database\\Eloquent\\Model but returns Mockery\\LegacyMockInterface.#' - path: %currentWorkingDirectory%/packages/EasyRepository/tests/Implementation/Illuminate - - message: '#Parameter \#1 \$expected of static method PHPUnit\\Framework\\Assert::assertInstanceOf\(\) expects class-string, string given.#' path: %currentWorkingDirectory%/packages/EasyRepository/tests