Skip to content

Commit

Permalink
Drop phpstan baseline
Browse files Browse the repository at this point in the history
  • Loading branch information
scaytrase committed Jun 9, 2021
1 parent 0d2ff6f commit 35b4365
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 79 deletions.
62 changes: 0 additions & 62 deletions phpstan-baseline.neon

This file was deleted.

2 changes: 0 additions & 2 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
includes:
- phpstan-baseline.neon
parameters:
level: 6
paths:
Expand Down
3 changes: 3 additions & 0 deletions src/PSR7/Exception/Validation/InvalidParameter.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@

use const JSON_PRETTY_PRINT;

/**
* @method SchemaMismatch getPrevious()
*/
class InvalidParameter extends ValidationFailed
{
/** @var string */
Expand Down
4 changes: 2 additions & 2 deletions tests/FromCommunity/Issue79Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function testItFindsMatchingOperationWithTheRightServer(
}

/**
* @return string[]
* @return iterable<string[]>
*/
public function provideSpecAndOperationToMatch(): iterable
{
Expand Down Expand Up @@ -134,7 +134,7 @@ public function testItDoesNotFindMatchingOperationWithTheWrongServer(
}

/**
* @return string[]
* @return iterable<string[]>
*/
public function provideSpecAndOperationToNotMatch(): iterable
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
class MultipartValidatorTest extends TestCase
{
/**
* @return array<array<string>> of arguments
* @return string[][] of arguments
*/
public function dataProviderMultipartGreen(): array
{
Expand Down Expand Up @@ -162,7 +162,7 @@ public function dataProviderMultipartGreen(): array
}

/**
* @return array<array<string,string>> of arguments
* @return string[][] of arguments
*/
public function dataProviderMultipartRed(): array
{
Expand Down
6 changes: 2 additions & 4 deletions tests/PSR7/Validators/BodyValidatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

use GuzzleHttp\Psr7\ServerRequest;
use League\OpenAPIValidation\PSR7\Exception\Validation\InvalidBody;
use League\OpenAPIValidation\PSR7\OperationAddress;
use League\OpenAPIValidation\PSR7\ValidatorBuilder;
use PHPUnit\Framework\TestCase;

Expand All @@ -15,7 +14,7 @@
class BodyValidatorTest extends TestCase
{
/**
* @return array<array<string,string>> of arguments
* @return string[][] of arguments
*/
public function dataProviderGreen(): array
{
Expand Down Expand Up @@ -53,7 +52,6 @@ public function dataProviderGreen(): array
abc
HTTP
,
new OperationAddress('/post-media-range', 'post'),
],
[
__DIR__ . '/../../stubs/multi-media-types.yaml',
Expand Down Expand Up @@ -81,7 +79,7 @@ public function dataProviderGreen(): array
}

/**
* @return array<array<string,string>> of arguments
* @return string[][] of arguments
*/
public function dataProviderRed(): array
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Schema/Keywords/PatternTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
final class PatternTest extends SchemaValidatorTest
{
/**
* @return array<array<string, string>>
* @return string[][]
*/
public function validDataProvider(): array
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Schema/Keywords/TypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
final class TypeTest extends SchemaValidatorTest
{
/**
* @return array<array<string, mixed>>
* @return mixed[][]
*/
public function validDataProvider(): array
{
Expand Down Expand Up @@ -70,7 +70,7 @@ public function testItValidatesTypeRed(string $type, $invalidValue): void
}

/**
* @return array<array<string, mixed>>
* @return mixed[][]
*/
public function invalidDataProvider(): array
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Schema/Keywords/UniqueItemsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
final class UniqueItemsTest extends SchemaValidatorTest
{
/**
* @return array<array<string, array<mixed>>>>
* @return array<array<(string|array<mixed>)>>
*/
public function dataProviderGreen(): array
{
Expand Down Expand Up @@ -122,7 +122,7 @@ public function dataProviderGreen(): array
}

/**
* @return array<array<string, array<mixed>>>>
* @return array<array<(string|array<mixed>)>>
*/
public function dataProviderRed(): array
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Schema/TypeFormats/StringDateTimeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function testGreenDateTimeTypeFormat(string $dateTime): void
}

/**
* @return array<string>
* @return string[][]
*/
public function dateTimeGreenDataProvider(): array
{
Expand All @@ -43,7 +43,7 @@ public function testRedDateTimeTypeFormat(string $dateTime): void
}

/**
* @return array<string>
* @return string[][]
*/
public function dateTimeRedDataProvider(): array
{
Expand Down

0 comments on commit 35b4365

Please sign in to comment.