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

Unify a way how to load stubs for extensions #8881

Closed
wants to merge 1 commit into from

Conversation

alies-dev
Copy link
Contributor

@alies-dev alies-dev commented Dec 10, 2022

Idea: do not use extension_loaded() function to determinate loaded extensions. Instead, Psalm already has 2 ways of doing this:

  1. composer.json (declare ext in require block)
  2. using config: enableExtentions: https://psalm.dev/docs/running_psalm/configuration/#enableextensions

Note, it may potentially change live output from code snippets on psalm.dev. To fix it, please use one of 2 methods from a list above

Why?

  1. Reduce entopy
  2. Provide potential contributors a clear way how to support extensions vis stubs

Linked discussion

#8879

@alies-dev
Copy link
Contributor Author

replaced by #8885

@alies-dev alies-dev closed this Dec 11, 2022
@alies-dev alies-dev deleted the php-ext branch February 25, 2023 11:04
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.

None yet

1 participant