Skip to content

Commit

Permalink
Fix phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincz committed Jan 14, 2021
1 parent c8d2ba7 commit 712b141
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

class DoctrineTypeGuesserTest extends TestCase
{
// @phpstan-ignore-next-line
protected $property;

public function testGuessError(): void
Expand All @@ -20,6 +21,7 @@ public function testGuessError(): void
$docBlockGuesser = new DoctrineTypeGuesser(new ClassesTypesMap());

try {
// @phpstan-ignore-next-line
$docBlockGuesser->guessType($refClass, $refClass);
} catch (Exception $e) {
$this->assertInstanceOf(TypeGuessingException::class, $e);
Expand Down
7 changes: 7 additions & 0 deletions tests/Config/Parser/fixtures/annotations/Type/Lightsaber.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,23 @@ class Lightsaber
* @GQL\Field
*/
#[GQL\Field]
// @phpstan-ignore-next-line
protected $color;

/**
* @ORM\Column(type="text")
* @GQL\Field
*/
#[GQL\Field]
// @phpstan-ignore-next-line
protected $text;

/**
* @ORM\Column(type="string")
* @GQL\Field
*/
#[GQL\Field]
// @phpstan-ignore-next-line
protected $string;

/**
Expand Down Expand Up @@ -98,26 +101,30 @@ class Lightsaber
* @GQL\Field
*/
#[GQL\Field]
// @phpstan-ignore-next-line
protected $float;

/**
* @ORM\Column(type="decimal")
* @GQL\Field
*/
#[GQL\Field]
// @phpstan-ignore-next-line
protected $decimal;

/**
* @ORM\Column(type="bool")
* @GQL\Field
*/
#[GQL\Field]
// @phpstan-ignore-next-line
protected $bool;

/**
* @ORM\Column(type="boolean")
* @GQL\Field
*/
#[GQL\Field]
// @phpstan-ignore-next-line
protected $boolean;
}

0 comments on commit 712b141

Please sign in to comment.