File tree Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 4444 "dealerdirect/phpcodesniffer-composer-installer" : " *" ,
4545 "mglaman/phpstan-drupal" : " ^1.1" ,
4646 "phpstan/extension-installer" : " ^1.1" ,
47- "phpstan/phpstan-deprecation-rules" : " ^1.0"
47+ "phpstan/phpstan-deprecation-rules" : " ^1.0" ,
48+ "webflo/drupal-finder" : " ^1.3"
4849 },
4950 "autoload" : {
5051 "psr-4" : {
Original file line number Diff line number Diff line change 55namespace Wunderio \GrumPHP \Drupal ;
66
77use Drupal \Core \DependencyInjection \ContainerNotInitializedException ;
8- use DrupalFinder \DrupalFinder ;
8+ use DrupalFinder \DrupalFinderComposerRuntime ;
99use Drush \Drush ;
1010use mglaman \PHPStanDrupal \Drupal \Extension ;
1111use mglaman \PHPStanDrupal \Drupal \ExtensionDiscovery ;
@@ -90,8 +90,7 @@ class DrupalAutoloader {
9090 * Path to Drupal root.
9191 */
9292 public function register (string $ drupalRoot ): void {
93- $ finder = new DrupalFinder ();
94- $ finder ->locateRoot ($ drupalRoot );
93+ $ finder = new DrupalFinderComposerRuntime ();
9594
9695 $ drupalRoot = $ finder ->getDrupalRoot ();
9796 $ drupalVendorRoot = $ finder ->getVendorDir ();
Original file line number Diff line number Diff line change 1+ services :
2+ Wunderio\GrumPHP\Task\Psalm\PsalmTask :
3+ class : Wunderio\GrumPHP\Task\Psalm\PsalmTask
4+ arguments :
5+ - ' @process_builder'
6+ - ' @formatter.raw_process'
7+ tags :
8+ - {name: grumphp.task, task: psalm}
You can’t perform that action at this time.
0 commit comments