Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with TestBlockDisplayVariant Class #32

Closed
davidjguru opened this issue Apr 12, 2019 · 1 comment
Closed

Error with TestBlockDisplayVariant Class #32

davidjguru opened this issue Apr 12, 2019 · 1 comment
Labels
autoloading Problems with autoloading phpstan-drupal Issue relates to PHPStan Drupal extension

Comments

@davidjguru
Copy link

Hi, I'm trying run drupal-check inside a Drupal project, but I'm unable to get the right feedback. This is giving me back a PHP Fatal error constantly.

PHP Fatal error: Cannot declare class Drupal\Tests\ctools\Unit\TestBlockDisplayVariant, because the name is already in use in /var/www/html/ctpdandalucia/web/modules/contrib/ctools/tests/src/Unit/BlockDisplayVariantTest.php on line 90
Launching drupal-check -ad web/modules/contrib/ return a message:
"PHPStan crashed in the previous run probably because of excessive memory consumption."
but I have the PHP memory limit set to -1 in cli and Apache...so what can I do?

My Drupal (output from drush status):
Drupal version : 8.6.14
PHP binary : /usr/bin/php7.2
PHP config : /etc/php/7.2/cli/php.ini

Greetings,
David.

@mglaman mglaman added autoloading Problems with autoloading phpstan-drupal Issue relates to PHPStan Drupal extension labels Apr 27, 2019
mglaman added a commit that referenced this issue May 3, 2019
@mglaman
Copy link
Owner

mglaman commented May 3, 2019

I cannot reproduce. The autoloading has been improved, too. Can you try the latest drupal-check?

@mglaman mglaman closed this as completed May 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autoloading Problems with autoloading phpstan-drupal Issue relates to PHPStan Drupal extension
Projects
None yet
Development

No branches or pull requests

2 participants