Skip to content

Commit 85d29e1

Browse files
authored
Nette DI fixes (#49)
* Nette DI fixes Fixes #47 * Temporarily identify nette/di 3.0.0 as a conflict
1 parent b8b14a2 commit 85d29e1

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

composer.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@
1919
"squizlabs/php_codesniffer": "^3.3",
2020
"phpunit/phpunit": "^7.5"
2121
},
22+
"conflict": {
23+
"nette/di": ">=3.0"
24+
},
25+
"minimum-stability": "dev",
26+
"prefer-stable": true,
2227
"suggest": {
2328
"phpstan/phpstan-deprecation-rules": "For catching deprecations, especially in Drupal core."
2429
},

extension.neon

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ rules:
2424
- PHPStan\Rules\Drupal\PluginManager\PluginManagerSetsCacheBackendRule
2525
services:
2626
drupal.serviceMapFactory:
27-
class: PHPStan\Drupal\ServiceMapFactoryInterface
27+
class: PHPStan\Drupal\ServiceMapFactory
2828
factory: PHPStan\Drupal\ServiceMapFactory(%drupalServiceMap%)
2929
-
30-
class: @drupal.serviceMapFactory::create()
30+
factory: @drupal.serviceMapFactory::create()
3131
-
3232
class: PHPStan\Type\EntityTypeManagerGetStorageDynamicReturnTypeExtension
3333
arguments:

0 commit comments

Comments
 (0)