Skip to content

Commit cfaf85e

Browse files
Reduce meaningless intermediate variables (#56843)
1 parent 2eaa6f2 commit cfaf85e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/Integration/Concurrency/Console/InvokeSerializedClosureCommandTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,8 @@ public function testItCanInvokeSerializedClosureFromEnvironment()
5757
$closure = fn () => 'From Environment';
5858
$serialized = serialize(new SerializableClosure($closure));
5959

60-
$encoded = base64_encode($serialized);
61-
6260
// Set the environment variable
63-
$_SERVER['LARAVEL_INVOKABLE_CLOSURE'] = $encoded;
61+
$_SERVER['LARAVEL_INVOKABLE_CLOSURE'] = base64_encode($serialized);
6462

6563
// Create a new output buffer
6664
$output = new BufferedOutput;

0 commit comments

Comments
 (0)