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

Fix Migration Class Warning Generation #1877

Merged
merged 5 commits into from
Jun 26, 2024

Conversation

ryanrath
Copy link
Contributor

@ryanrath ryanrath commented Jun 25, 2024

Description

This code was causing warnings to be generated when testing with PHP 7.4. It turns out that trying to create a Configuration object for an entire directory will do that. Upon further investigation I found that the only time this property was used was to access it's baseDir value ( Which is always equal to the CONFIG_DIR class constant). I just updated the uses of this property to instead use CONFIG_DIR and removed the now unused config property.

Motivation and Context

Less warnings == less support tickets.

Tests performed

Checklist:

  • The pull request description is suitable for a Changelog entry
  • The milestone is set correctly on the pull request
  • The appropriate labels have been added to the pull request

This bit of  code is being told to process not-files on PHP 7.4
AppKernels. So adding a quick check to make sure that the fd actually
points to a file before processing will make it so those error messages
aren't generated.
@ryanrath ryanrath changed the title Fix a structured file Fix Migration Class Warning Generation Jun 26, 2024
@ryanrath ryanrath added bug Bugfixes Category:General General labels Jun 26, 2024
@ryanrath ryanrath added this to the 11.0.0 milestone Jun 26, 2024
@ryanrath ryanrath merged commit 44d2c40 into ubccr:xdmod11.0 Jun 26, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bugfixes Category:General General
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants