From e3361bc3215cee8e3d57042535744ce04b663572 Mon Sep 17 00:00:00 2001 From: nuno maduro Date: Mon, 1 Jun 2026 07:08:50 +0100 Subject: [PATCH] fix: don't `ob_start` with pao --- src/KernelDump.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/KernelDump.php b/src/KernelDump.php index 4ecfe24b..383da0e6 100644 --- a/src/KernelDump.php +++ b/src/KernelDump.php @@ -4,6 +4,7 @@ declare(strict_types=1); namespace Pest; +use Laravel\Pao\Execution; use Pest\Support\View; use Symfony\Component\Console\Output\OutputInterface; @@ -28,6 +29,10 @@ final class KernelDump */ public function enable(): void { + if (class_exists(Execution::class) && Execution::running()) { + return; + } + ob_start(function (string $message): string { $this->buffer .= $message;