Skip to content

chore: use filepath.Separator instead of hardcoded separator#1685

Merged
dunglas merged 1 commit intophp:mainfrom
alexandre-daubois:file-separator
Jun 27, 2025
Merged

chore: use filepath.Separator instead of hardcoded separator#1685
dunglas merged 1 commit intophp:mainfrom
alexandre-daubois:file-separator

Conversation

@alexandre-daubois
Copy link
Copy Markdown
Member

@alexandre-daubois alexandre-daubois commented Jun 25, 2025

filepath.Separator is a compile-time constant, performances should be pretty much the same as using the hard-coded separator. It additionally brings Windows compatibility.

@dunglas dunglas merged commit 30ef5f6 into php:main Jun 27, 2025
43 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