Comments (4)
@mglaman any suggestions to the above? 🤞🏼
from drupal-check.
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.
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.
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)
- drupal-check conflicts with phpstan/extension-installer HOT 2
- Drupal check errors on baseFieldDefinitions HOT 1
- Drupal Check incorrectly reporting "missing methods" on Interfaces, when methods actually exist on implementing class. HOT 6
- Class 'DrupalCheck\Application' not found in Docker project (PHP error) HOT 4
- Exclude Dir option is not working HOT 3
- Update Intracto sponsor to iO
- Add anonymous usage telemetry
- Bump PHPStan to level 2. HOT 1
- Allow output to file or remove maintainers message HOT 2
- Add option to set phpVersion to 80100 for PHP 8.1 analysis on PHP 7.4
- Invalid JSON output HOT 1
- False violation on paragraph entity HOT 2
- Using --analysis with Drupal gives a lot of issues due to loose array types HOT 4
- Add jangregor/phpstan-prophecy and phpstan/phpstan-phpunit as dependencies HOT 1
- Allow custom config to be used HOT 1
- Dependency source logic not working
- Readme does not match actual options allowed in command.
- Conflict with phpcs for hook implementations HOT 1
- Global install no longer works in Drupal ^10.0.0 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from drupal-check.