Giter VIP home page Giter VIP logo

Comments (4)

martin-christensen avatar martin-christensen commented on July 17, 2024

@mglaman any suggestions to the above? 🤞🏼

from drupal-check.

mglaman avatar mglaman commented on July 17, 2024

This isn't inconsistent. Does that method exist in that interface or a different one?

You're running with analysis and deprecations

Performing deprecation checks
Performing analysis checks

See https://www.drupal.org/docs/develop/development-tools/phpstan/fixing-reports-of-undefined-methods

from drupal-check.

martin-christensen avatar martin-christensen commented on July 17, 2024

Thanks for your reply!

Yes, I know and also get how to fix this.

My actual question is, why it only gives me this error when running drupal-check on our custom Drupal project, where the custom module is required.

The error is about a Core thing, so I should give the same error when following the guide from the wiki, which states to get a clean Drupal Core, require the custom module and running drupal-check. But in that case, it gives me no errors, which is weird.

from drupal-check.

mglaman avatar mglaman commented on July 17, 2024

So when running the custom module outside of your normal project it doesn't error? The file being src/Plugin/rest/resource/AllerAptomaApiContent.php in aller_aptoma

See the one without error:

Analyzing path: /Users/mach02/projects/web/dk-news-backend/aller_aptoma	
Current working directory: /Users/mach02/projects/web/dk-news-backend	
Using Drupal root: /Users/mach02/projects/web/dk-news-backend/web	
Using vendor root: /Users/mach02/projects/web/dk-news-backend/vendor

And with:

Analyzing path: /Users/mach02/projects/web/dk-seoghoer-backend/web/modules/custom/dk-news-backend/aller_aptoma
Current working directory: /Users/mach02/projects/web/dk-seoghoer-backend
Using Drupal root: /Users/mach02/projects/web/dk-seoghoer-backend/web
Using vendor root: /Users/mach02/projects/web/dk-seoghoer-backend/vendor

The one with an error has your code properly placed in Drupal for analysis.

Right now it's not possible to analyze a module outside of where Drupal would expect to find extensions

from drupal-check.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.