Sami Hellsten
Sami Hellsten
Contrib drush packages are intended to be ignored in gitignore, but in path `./drush/contrib/` https://github.com/drupal-composer/drupal-project/blob/8.x/.gitignore#L2 Composer installs drush packages into `./drush/Commands/contrib/` https://github.com/drupal-composer/drupal-project/blob/8.x/composer.json#L77 Not sure which one is incorrect, but probably...
https://github.com/mglaman/drupal-check/blob/e78eff7b10f79659c020a45baaa1f3035cb9a06a/src/Command/CheckCommand.php#L184 In the project vs global dependency solver it seems that the `__DIR__` is starting from wrong path. When running from project binary, `__DIR__` is `.../vendor/mglaman/drupal-check/src/Command` so it just so...
Provides ability to create custom file like `custom-phpstan.neon` ```neon # See https://phpstan.org/user-guide/ignoring-errors#generate-an-ignoreerrors-entry for formatting parameters: ignoreErrors: - '#^Access to an undefined property Drupal\\Core\\Field\\FieldItemListInterface\:\:\$date\.$#' ``` and use it with ``` drupal-check...
With https://github.com/mglaman/drupal-check/issues/266 the tool now reports errors on lines that are conflicting with how Drupal is normally made. For example, ``` function my_module_page_attachments(array &$attachments): void { ``` results in ```...
**How is drupal-check installed?** drupal-check is installed globally via Composer **Environment:** - OS: Linux (docker) - PHP Version: 8.1.13 - Drupal core: 10.0.0 **Describe the bug** Looks like Drupal 10...
As of recent versions (somewhere between 2.7.7 and 2.8.1), `composer diagnose` expects `platform-dev` to be object instead of array. However, when running `require` e.g. `composer require phpunit/phpunit` it will update...