Skip to content

[11.x] Improve check for relative sqlite databases#54513

Merged
taylorotwell merged 1 commit into
laravel:11.xfrom
LukeTowers:patch-1
Feb 10, 2025
Merged

[11.x] Improve check for relative sqlite databases#54513
taylorotwell merged 1 commit into
laravel:11.xfrom
LukeTowers:patch-1

Conversation

@LukeTowers

@LukeTowers LukeTowers commented Feb 7, 2025

Copy link
Copy Markdown
Contributor

Applies the suggestion from @Sekaiichi in #54480.

realpath() returns false if the file doesn't exist, so the previous code would have been file_exists(false), which technically doesn't match the file_exists signature.

See https://stackoverflow.com/a/8374026

Applies the suggestion from @Sekaiichi in #54480.

realpath() returns false if the file doesn't exist, so the previous code would have been file_exists(false), which technically doesn't match the file_exists signature.
@taylorotwell taylorotwell merged commit fbab686 into laravel:11.x Feb 10, 2025
@GrahamCampbell GrahamCampbell changed the title Improve check for relative sqlite databases [11.x] Improve check for relative sqlite databases Feb 10, 2025
@LukeTowers LukeTowers deleted the patch-1 branch February 10, 2025 17:53
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