Skip to content

Commit

Permalink
Use safer str_contains for php7
Browse files Browse the repository at this point in the history
  • Loading branch information
aarondfrancis committed Aug 3, 2021
1 parent 960e420 commit 4035332
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/BlockManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
namespace Torchlight\Jigsaw;

use Illuminate\Support\Arr;
use Illuminate\Support\Str;
use TightenCo\Jigsaw\Jigsaw;
use Torchlight\Blade\BladeManager;
use Torchlight\Block;
Expand Down Expand Up @@ -70,7 +71,7 @@ protected function renderMarkdownCapturedBlocks()

foreach ($elements as $element) {
// These are Blade directives, which will be handled later.
if (str_contains($element, '##PRE_TL_COMPONENT##')) {
if (Str::contains($element, '##PRE_TL_COMPONENT##')) {
continue;
}

Expand Down

0 comments on commit 4035332

Please sign in to comment.