Skip to content

Commit f989a47

Browse files
Merge pull request laravel#8326 from lucasmichot/5.0-route-unset
[5.0] Call unset only once
2 parents 6951f6f + 9e411f0 commit f989a47

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/Illuminate/Routing/Route.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -948,9 +948,7 @@ public function prepareForSerialization()
948948
throw new LogicException("Unable to prepare route [{$this->uri}] for serialization. Uses Closure.");
949949
}
950950

951-
unset($this->container);
952-
953-
unset($this->compiled);
951+
unset($this->container, $this->compiled);
954952
}
955953

956954
/**

0 commit comments

Comments
 (0)