Skip to content

Conversation

@bjo3rnf
Copy link
Contributor

@bjo3rnf bjo3rnf commented Oct 19, 2025

Fixes regression from 916d467 where converting null to empty string in searchConfigFiles() broke the ?? operator fallback in searchConfigFilesOnDisk().

Use elvis operator instead to handle both null and empty string.

Fixes regression from 916d467 where converting null to empty string in searchConfigFiles() broke the ?? operator fallback in searchConfigFilesOnDisk().

Use elvis operator instead to handle both null and empty string.
@bjo3rnf
Copy link
Contributor Author

bjo3rnf commented Oct 19, 2025

Sorry, I should have given some more details: After the mentioned commit the local configuration file in ray.php wasn't loaded any longer because none were found. This addresses #990 as I just realized. Sorry again for being overzealous.

@joshbmarshall
Copy link

This fix would be great to have merged in. I'm having to manually edit the files to get debugging to work again.

@SvenJuergens
Copy link

same problem here with php 8.2, the PR solved the problem

@freekmurze freekmurze merged commit 2104ba5 into spatie:main Oct 29, 2025
29 checks passed
@freekmurze
Copy link
Member

Thanks!

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.

4 participants