Skip to content

chore: [Psalm] workaround for UndefinedClass SimpleConfig #8180

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

Merged
merged 1 commit into from
Nov 20, 2023

Conversation

kenjis
Copy link
Member

@kenjis kenjis commented Nov 9, 2023

Description
This error does not occur in my environment, so I cannot confirm that it has been resolved.

Error: tests/system/Config/BaseConfigTest.php:81:23: UndefinedClass: Class, interface or enum named SimpleConfig does not exist (see https://psalm.dev/019)
Error: Process completed with exit code 2.

https://github.com/codeigniter4/CodeIgniter4/actions/runs/6794733818/job/18471613113?pr=8175

Checklist:

  • Securely signed commits
  • [] Component(s) with PHPDoc blocks, only if necessary or adds value
  • [] Unit testing, with >80% coverage
  • [] User guide updated
  • [] Conforms to style guide

UndefinedClass: Class, interface or enum named SimpleConfig does not exist (see https://psalm.dev/019)
Copy link
Member

@MGatner MGatner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dunno, but this fixes it 🤷‍♂️

@kenjis kenjis merged commit 45ce53b into codeigniter4:develop Nov 20, 2023
@kenjis kenjis deleted the fix-psalm_autoload.php branch November 20, 2023 21:15
@kenjis
Copy link
Member Author

kenjis commented Nov 20, 2023

SimpleConfig is not autoloadable. So it is no wonder Psalm complains UndefinedClass.
However, I don't know why Psalm sometimes (not always) reports the error.

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.

2 participants