Skip to content
Permalink
Browse files

[BUILD] Cleanup phpstan errors

  • Loading branch information...
core23 committed Mar 21, 2019
1 parent 045c814 commit 477fa64dc45008c2cb93e2f2537355e235f04fe8
Showing with 9 additions and 12 deletions.
  1. +6 −7 phpstan.neon
  2. +0 −2 tests/Core23SitemapBundleTest.php
  3. +3 −3 vendor-bin/phpstan/composer.json
@@ -1,14 +1,13 @@
includes:
- vendor-bin/phpstan/vendor/jangregor/phpstan-prophecy/src/extension.neon
- vendor-bin/phpstan/vendor/phpstan/phpstan-doctrine/extension.neon
- vendor-bin/phpstan/vendor/phpstan/phpstan-phpunit/extension.neon
- vendor-bin/phpstan/vendor/phpstan/phpstan-phpunit/rules.neon

parameters:
autoload_files:
- vendor-bin/test/vendor/autoload.php

includes:
- vendor-bin/phpstan/vendor/phpstan/phpstan-deprecation-rules/rules.neon
- vendor-bin/phpstan/vendor/phpstan/phpstan-doctrine/extension.neon
- vendor-bin/phpstan/vendor/phpstan/phpstan-phpunit/extension.neon
- vendor-bin/phpstan/vendor/phpstan/phpstan-phpunit/rules.neon
- vendor-bin/phpstan/vendor/phpstan/phpstan-strict-rules/rules.neon

ignoreErrors:
- '#PHPDoc tag @throws with type Psr\\SimpleCache\\InvalidArgumentException is not subtype of Throwable#'

@@ -11,7 +11,6 @@
use Core23\SitemapBundle\Core23SitemapBundle;
use Core23\SitemapBundle\DependencyInjection\Compiler\SitemapCompilerPass;
use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit\Framework\TestCase;
use Symfony\Component\DependencyInjection\ContainerBuilder;
@@ -26,7 +25,6 @@ public function testItIsInstantiable(): void
public function testBuild(): void
{
/** @var MockObject&ContainerBuilder $containerBuilder */
$containerBuilder = $this->createMock(ContainerBuilder::class);
$containerBuilder->expects($this->once())->method('addCompilerPass')
@@ -1,11 +1,11 @@
{
"require": {
"jangregor/phpstan-prophecy": "^0.3",
"phpstan/phpstan": "^0.11",
"phpstan/phpstan-doctrine": "^0.11",
"phpstan/phpstan-phpunit": "^0.11",
"phpstan/phpstan-strict-rules": "^0.11"
"phpstan/phpstan-phpunit": "^0.11"
},
"conflict": {
"phpunit/phpunit": ">=7.0"
"phpunit/phpunit": ">=8.0"
}
}

0 comments on commit 477fa64

Please sign in to comment.
You can’t perform that action at this time.