phpstan-drupal icon indicating copy to clipboard operation
phpstan-drupal copied to clipboard

Add Drush command for configuring PHPStan

Open mglaman opened this issue 3 years ago • 5 comments

Fixes #343

mglaman avatar Apr 13 '22 21:04 mglaman

Instead of being used to dump phpstan.neon, could be a supplemental file that gets included into the phpstan.neon for drupal related items.

mglaman avatar Apr 13 '22 21:04 mglaman

You don’t need to use nette/neon to write the file, you can output it like a human would, by echoing tabs and newlines 😊

ondrejmirtes avatar Apr 14 '22 05:04 ondrejmirtes

You don’t need to use nette/neon to write the file, you can output it like a human would, by echoing tabs and newlines 😊

😅 Yeah, thinking back it's not that bad. Especially since it's just "is string or array?" But apparently it was too much for my end of day brain

mglaman avatar Apr 14 '22 11:04 mglaman

Fails due to Symfony v4 and v6 compat, see https://github.com/drush-ops/drush/pull/5108/files#diff-fcb54a74a331c6112bd5cf5e32f08a4d0a39f42c16833b899b4fac0339d453c7

Need to call \Drush\Preflight\Preflight::loadSymfonyCompatabilityAutoloader – Drush 11 only!

mglaman avatar May 04 '22 21:05 mglaman