Skip to content

Commit

Permalink
Add L5.8 support
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexVanderbist committed Feb 27, 2019
1 parent e9456cb commit 2646320
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ composer.lock
docs
vendor
coverage
.idea/
.idea/
.phpunit.result.cache
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All notable changes to `laravel-database-mail-templates` will be documented in this file

# 3.0.1 - 2019-02-27

- Add support for Laravel 5.8

# 3.0.0 - 2019-02-04

- Add support for text mails (#10)
Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
],
"require": {
"php": "^7.1",
"laravel/framework": "~5.7",
"laravel/framework": "~5.7|~5.8",
"mustache/mustache": "^2.12"
},
"require-dev": {
"ext-pdo_sqlite": "*",
"mockery/mockery": "^1.0.0",
"orchestra/testbench": "~3.7",
"phpunit/phpunit": "^7.0"
"mockery/mockery": "^1.0",
"orchestra/testbench": "~3.7|~5.8",
"phpunit/phpunit": "^7.0|^8.0"
},
"autoload": {
"psr-4": {
Expand Down
3 changes: 2 additions & 1 deletion src/TemplateMailableRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Spatie\MailTemplates;

use Illuminate\Support\Str;
use Mustache_Engine;
use Spatie\MailTemplates\Exceptions\CannotRenderTemplateMailable;

Expand Down Expand Up @@ -74,7 +75,7 @@ protected function renderInLayout(string $body, int $layoutType, array $data = [

protected function guardAgainstInvalidLayout(string $layout): void
{
if (! str_contains($layout, [
if (! Str::contains($layout, [
'{{{body}}}',
'{{{ body }}}',
'{{body}}',
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

class TestCase extends OrchestraTestCase
{
protected function setUp()
protected function setUp(): void
{
parent::setUp();

Expand Down

0 comments on commit 2646320

Please sign in to comment.