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

Chore/small fixes #261

Merged
merged 4 commits into from
Mar 4, 2025
Merged

Chore/small fixes #261

merged 4 commits into from
Mar 4, 2025

Conversation

snim2
Copy link
Contributor

@snim2 snim2 commented Mar 4, 2025

This PR contains the first few commits from #224 which are repo chores:

  • Bring phpunit config up to date
  • Add some assertions to test which didn't have any
  • Fix an error which is triggered when .gitignore is empty
  • Refactor dependency types into public consts

I haven't updated the ChangeLog because none of this is user-facing.

I'm also going to close PR #224, it could possibly be fixed but I realised I made a design decision early on that was misguided and makes the code messier, so probably it would be better to split the PR into smaller PRs if we do move it forward.

snim2 added 4 commits March 4, 2025 09:17
This resolves a deprecation warning.
We have a small number of extant tests with no assertions.
These raise a "risky test" warning when running ./script/test.
This commit adds some sensible assertions to the tests to
avoid this warning.
Previously we hard-coded the list of dependency types wherever
we needed to use them. In order to manage language packs within
Whippet, we now need to add to the list of dependency types.
So, rather than have them scattered over the code, we now have
them in one place.

Once we have dropped PHP 7.4 support, we should really use an
enumeration here.

Fixes #70
@snim2 snim2 merged commit c7ec254 into main Mar 4, 2025
5 checks passed
@snim2 snim2 deleted the chore/small-fixes branch March 4, 2025 09:34
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