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 double $ on PHP 8 #338

Merged
merged 1 commit into from
Dec 29, 2020
Merged

Fix double $ on PHP 8 #338

merged 1 commit into from
Dec 29, 2020

Conversation

remzikocak
Copy link
Contributor

On PHP 8.0 RC5 the variable name is shown with double $. This makes the button "Make variable optional" not working, because it searches for '{{ $$myVar }}' instead '{{ $myVar }}'.

This Pull request Strip's $ sign from the beginning of the matched variable name.

Environment:
OS: macOS BigSur 11.0.1
Laravel Valet Version: 2.13.2
PHP: 8.0 RC5

Tests are green on both PHP 7.4 and 8.0.

Bildschirmfoto 2020-11-25 um 23 20 53

@freekmurze freekmurze merged commit 565c9b4 into facade:master Dec 29, 2020
@freekmurze
Copy link
Collaborator

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.

2 participants