Skip to content

Commit 6c22a2b

Browse files
TjoostenTjoosten
authored andcommitted
Replace or by ||
The or operator does not have the same precedence as ||. This could lead to unexpected behavior, use || instead.
1 parent 40e5cf0 commit 6c22a2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LaravelDebugbar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ public function getJavascriptRenderer($baseUrl = null, $basePath = null)
437437
public function modifyResponse($request, $response)
438438
{
439439
$app = $this->app;
440-
if ($app->runningInConsole() or !$this->isEnabled() || $this->isDebugbarRequest()) {
440+
if ($app->runningInConsole() || !$this->isEnabled() || $this->isDebugbarRequest()) {
441441
return $response;
442442
}
443443

0 commit comments

Comments
 (0)