Skip to content

fix: Add complete class methods to prevent Intelephense conflicts #1710

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

erikn69
Copy link
Contributor

@erikn69 erikn69 commented May 14, 2025

Summary

Alternartive to #1695, #1696, Closes #1693

This PR fixes Intelephense issues by adding complete classes methods to the generated stubs.
It also works for other simpler IDEs, I tested it in NetBeans

Now could be

  • include_complete_stubs => true //(default: false), would force map all the methods of the aliases
  • include_complete_stubs => [Request::class, Arr::class] would force map only the listed aliases

Changes:

  • Added new config option include_complete_stubs(OPT-IN, false as default)

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
  • Misc. change (internal, infrastructure, maintenance, etc.)

Checklist

  • Existing tests have been adapted and/or new tests have been added
  • Update the README.md
  • Code style has been fixed via composer fix-style

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

Successfully merging this pull request may close these issues.

Conflicting with Intelephense
1 participant