Skip to content

Commit

Permalink
[5.x] Add ArrayableString to Blade value helper (#11041)
Browse files Browse the repository at this point in the history
Co-authored-by: Jason Varga <[email protected]>
  • Loading branch information
ajnsn and jasonvarga authored Nov 21, 2024
1 parent 54f3d3f commit 33b0b13
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/View/Blade/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Statamic\View\Blade;

use Statamic\Fields\ArrayableString;
use Statamic\Fields\Value;
use Statamic\Fields\Values;
use Statamic\Modifiers\Modify;
Expand All @@ -11,7 +12,7 @@

function value(mixed $value): mixed
{
if ($value instanceof Value) {
if ($value instanceof Value || $value instanceof ArrayableString) {
$value = $value->value();
} elseif ($value instanceof Values) {
$value = $value->all();
Expand Down

0 comments on commit 33b0b13

Please sign in to comment.