Skip to content
This repository has been archived by the owner on Sep 18, 2022. It is now read-only.

Commit

Permalink
Merge 2249977 into 7051570
Browse files Browse the repository at this point in the history
  • Loading branch information
core23 committed Jul 30, 2019
2 parents 7051570 + 2249977 commit 072012c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
6 changes: 6 additions & 0 deletions phpstan.neon
Expand Up @@ -13,4 +13,10 @@ parameters:
# Symfony DI
- '#Call to an undefined method Symfony\\Component\\Config\\Definition\\Builder\\NodeDefinition::children\(\).#'
- '#Cannot call method end\(\) on Symfony\\Component\\Config\\Definition\\Builder\\NodeParentInterface\|null.#'
- "/Call to function method_exists.. with 'Symfony.+' and 'getRootNode' will always evaluate to false./"

# PHPUnit
-
message: '#Property .*::\$.* has no typehint specified.#'
path: tests/

Expand Up @@ -30,7 +30,7 @@ final class SitemapCompilerPassTest extends TestCase
*/
private $container;

protected function setUp()
protected function setUp(): void
{
$this->serviceManager = $this->prophesize(Definition::class);
$this->serviceManager->hasTag('core23.sitemap')
Expand Down
2 changes: 1 addition & 1 deletion tests/Generator/SitemapGeneratorTest.php
Expand Up @@ -35,7 +35,7 @@ public static function setUpBeforeClass()
date_default_timezone_set('UTC');
}

protected function setUp()
protected function setUp(): void
{
$this->sitemapServiceManager = $this->prophesize(SitemapServiceManagerInterface::class);
$this->defintionManager = $this->prophesize(DefintionManagerInterface::class);
Expand Down
5 changes: 4 additions & 1 deletion vendor-bin/phpstan/composer.json
@@ -1,9 +1,12 @@
{
"require": {
"ekino/phpstan-banned-code": "^0.1",
"jangregor/phpstan-prophecy": "^0.4",
"phpstan/extension-installer": "^1.0",
"phpstan/phpstan": "^0.11",
"phpstan/phpstan-phpunit": "^0.11"
"phpstan/phpstan-phpunit": "^0.11",
"phpstan/phpstan-strict-rules": "^0.11",
"phpstan/phpstan-symfony": "^0.11"
},
"conflict": {
"phpunit/phpunit": ">=8.0"
Expand Down

0 comments on commit 072012c

Please sign in to comment.