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

Undefined class constant 'KIND_FLOAT' #27

Closed
andileco opened this issue Apr 2, 2019 · 2 comments
Closed

Undefined class constant 'KIND_FLOAT' #27

andileco opened this issue Apr 2, 2019 · 2 comments

Comments

@andileco
Copy link

andileco commented Apr 2, 2019

Running drupal-check web/modules/custom/charts, I get the following:

Line src/Plugin/views/style/ChartsPluginStyleChart.php


     Internal error: Undefined class constant 'KIND_FLOAT'
     Run PHPStan with --debug option and post the stack trace to:
     https://github.com/phpstan/phpstan/issues/new

the words KIND_FLOAT don't exist in the codebase. I do have a constant in use like this:

ChartsInterface::CHARTS_SINGLE_AXIS

Is it a problem with my code or with PHPStan?

@andileco
Copy link
Author

andileco commented Apr 2, 2019

Seems similar: phpstan/phpstan#1386

@mglaman
Copy link
Owner

mglaman commented Apr 12, 2019

This is due to Drush installing an old version of the PHP parser for its PHP shell. I'm going to track this in #37 and try to see how we can prevent the autoloading conflict.

@mglaman mglaman closed this as completed Apr 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants