Skip to content

Commit

Permalink
bump to PHPStan 0.8, add fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Aug 2, 2017
1 parent abb6520 commit 233662b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -32,7 +32,7 @@
"require-dev": {
"tracy/tracy": "^2.4",
"phpunit/phpunit": "^6.0",
"phpstan/phpstan": "^0.7",
"phpstan/phpstan": "^0.8",
"symplify/easy-coding-standard": "^2.2.3"
},
"autoload": {
Expand Down
Expand Up @@ -9,7 +9,6 @@
use ApiGen\Reflection\Tests\Reflection\Class_\ClassReflection\Source\AccessLevels;
use ApiGen\Reflection\Tests\Reflection\Class_\ClassReflection\Source\ParentClass;
use ApiGen\Reflection\Tests\Reflection\Class_\ClassReflection\Source\RichInterface;
use ApiGen\Reflection\Tests\Reflection\Class_\ClassReflection\Source\SomeTrait;
use ApiGen\Tests\AbstractContainerAwareTestCase;

abstract class AbstractReflectionClassTestCase extends AbstractContainerAwareTestCase
Expand All @@ -24,11 +23,6 @@ abstract class AbstractReflectionClassTestCase extends AbstractContainerAwareTes
*/
protected $reflectionClassOfParent;

/**
* @var ClassReflectionInterface
*/
protected $reflectionClassOfTrait;

/**
* @var InterfaceReflectionInterface
*/
Expand All @@ -47,9 +41,6 @@ protected function setUp(): void
$this->reflectionClass = $classReflections[AccessLevels::class];
$this->reflectionClassOfParent = $classReflections[ParentClass::class];

$traitReflections = $reflectionStorage->getTraitReflections();
$this->reflectionClassOfTrait = $traitReflections[SomeTrait::class];

$interfaceReflections = $reflectionStorage->getInterfaceReflections();
$this->interfaceReflection = $interfaceReflections[RichInterface::class];
}
Expand Down
1 change: 1 addition & 0 deletions phpstan.neon
Expand Up @@ -2,3 +2,4 @@ parameters:
ignoreErrors:
- "#Constant TEMP_DIR not found#"
- '#Call to an undefined method ApiGen\\Reflection\\Contract\\Reflection\\Partial\\AnnotationsInterface::getName\(\)#'
- '#Class Symfony\\Component\\ExpressionLanguage\\ExpressionLanguage not found and could not be autoloaded#'

0 comments on commit 233662b

Please sign in to comment.