diff --git a/src/Illuminate/Foundation/Testing/Concerns/InteractsWithPages.php b/src/Illuminate/Foundation/Testing/Concerns/InteractsWithPages.php index d335493b692c..011402625d13 100644 --- a/src/Illuminate/Foundation/Testing/Concerns/InteractsWithPages.php +++ b/src/Illuminate/Foundation/Testing/Concerns/InteractsWithPages.php @@ -634,8 +634,7 @@ protected function storeInput($element, $text) { $this->assertFilterProducesResults($element); - $element = str_replace('#', '', $element); - $element = str_replace('[]', '', $element); + $element = str_replace(['#', '[]'], '', $element); $this->inputs[$element] = $text;