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

Add file_exists check to prevent early require fatal #142

Merged
merged 1 commit into from
Nov 24, 2023

Conversation

KorvinSzanto
Copy link
Contributor

This PR is in relation to brefphp/constructs#12

By checking for the file to exist before requireing it we allow the later thrown exception to flow out as intended.

Copy link
Member

@mnapoli mnapoli left a comment

Choose a reason for hiding this comment

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

Oh interesting, I was thinking about adding a new exception but the existing exception makes sense too! That's a good idea!

I've approved the pipeline so tests run, will merge later (this will take a while).

@mnapoli mnapoli merged commit 103cb8f into brefphp:main Nov 24, 2023
5 checks passed
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.

3 participants