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

Changed inline @php directive to full form #2042

Merged
merged 1 commit into from
Mar 27, 2018
Merged

Changed inline @php directive to full form #2042

merged 1 commit into from
Mar 27, 2018

Conversation

cpouldev
Copy link
Contributor

According to #2012 issue, Laravel 5.5 dropped support for inline @php directive like @php(). On this PR I changed every inline to full form. I've already reproduce the issue on my sage-woo fork.

@cpouldev cpouldev changed the title changed inline @php directive to full form Changed inline @php directive to full form Mar 17, 2018
@QWp6t
Copy link
Member

QWp6t commented Mar 17, 2018

We could also recreate the previous behavior with a new directive.

    /**
     * Create @inline() Blade directive
     */
    sage('blade')->compiler()->directive('inline', function ($php) {
        return "<?php $php; ?>";
    });
<html @inline(language_attributes())>

@cpouldev
Copy link
Contributor Author

cpouldev commented Mar 17, 2018

I've tried that already but it has the same behavior like this laravel/framework#20065 (see laravel/framework#22621 (comment)). It's rare for someone to put blade markup inside php, but ¯_(ツ)_/¯ I prefer to have "vanilla" this basic behavior

@QWp6t QWp6t merged commit be1b888 into roots:master Mar 27, 2018
@QWp6t
Copy link
Member

QWp6t commented Mar 27, 2018

tyvm

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