diff --git a/composer.json b/composer.json index 43760144..aee46860 100644 --- a/composer.json +++ b/composer.json @@ -19,6 +19,11 @@ "squizlabs/php_codesniffer": "^3.3", "phpunit/phpunit": "^7.5" }, + "conflict": { + "nette/di": ">=3.0" + }, + "minimum-stability": "dev", + "prefer-stable": true, "suggest": { "phpstan/phpstan-deprecation-rules": "For catching deprecations, especially in Drupal core." }, diff --git a/extension.neon b/extension.neon index 8c976a1e..fa8fa391 100644 --- a/extension.neon +++ b/extension.neon @@ -24,10 +24,10 @@ rules: - PHPStan\Rules\Drupal\PluginManager\PluginManagerSetsCacheBackendRule services: drupal.serviceMapFactory: - class: PHPStan\Drupal\ServiceMapFactoryInterface + class: PHPStan\Drupal\ServiceMapFactory factory: PHPStan\Drupal\ServiceMapFactory(%drupalServiceMap%) - - class: @drupal.serviceMapFactory::create() + factory: @drupal.serviceMapFactory::create() - class: PHPStan\Type\EntityTypeManagerGetStorageDynamicReturnTypeExtension arguments: