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

L5.7 Undefined variable for Mail Vendor #25445

Closed
akr4m opened this issue Sep 4, 2018 · 2 comments
Closed

L5.7 Undefined variable for Mail Vendor #25445

akr4m opened this issue Sep 4, 2018 · 2 comments

Comments

@akr4m
Copy link
Contributor

akr4m commented Sep 4, 2018

  • Laravel Version: 5.7.0

Description:

Vendor mail html >
button.blade.php (Undefined color variable)
layout.blade.php
in Laravel 5.6, it was working fine. Only problem with Laravel 5.7

@ristlin
Copy link

ristlin commented Sep 8, 2018

I'm having the same issue, but it only pops up when I run phpunit on Codeship. I think it may be related to the following:

// Laravel 5.6...
{{ $foo or 'default' }}

// Laravel 5.7...
{{ $foo ?? 'default' }}

I will test now.

@ristlin
Copy link

ristlin commented Sep 8, 2018

OK, all my tests are passing now.

The problem is caused by using 5.6 Laravel vendor files, that used "or" rather than "??" for some data fields. As noted in the 5.7 upgrade guide, Laravel has removed support for "or." You can fix the problem by either replacing the old vendor files or by manually updating those lines.

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

No branches or pull requests

3 participants