|
16 | 16 | use Illuminate\Support\Traits\Macroable; |
17 | 17 | use Laravel\SerializableClosure\SerializableClosure; |
18 | 18 | use LogicException; |
19 | | -use Opis\Closure\SerializableClosure as OpisSerializableClosure; |
20 | 19 | use ReflectionFunction; |
21 | 20 | use Symfony\Component\Routing\Route as SymfonyRoute; |
22 | 21 |
|
@@ -977,7 +976,6 @@ public function getMissing() |
977 | 976 |
|
978 | 977 | return is_string($missing) && |
979 | 978 | Str::startsWith($missing, [ |
980 | | - 'C:32:"Opis\\Closure\\SerializableClosure', |
981 | 979 | 'O:47:"Laravel\\SerializableClosure\\SerializableClosure', |
982 | 980 | ]) ? unserialize($missing) : $missing; |
983 | 981 | } |
@@ -1228,16 +1226,14 @@ public function setContainer(Container $container) |
1228 | 1226 | public function prepareForSerialization() |
1229 | 1227 | { |
1230 | 1228 | if ($this->action['uses'] instanceof Closure) { |
1231 | | - $this->action['uses'] = serialize(\PHP_VERSION_ID < 70400 |
1232 | | - ? new OpisSerializableClosure($this->action['uses']) |
1233 | | - : new SerializableClosure($this->action['uses']) |
| 1229 | + $this->action['uses'] = serialize( |
| 1230 | + new SerializableClosure($this->action['uses']) |
1234 | 1231 | ); |
1235 | 1232 | } |
1236 | 1233 |
|
1237 | 1234 | if (isset($this->action['missing']) && $this->action['missing'] instanceof Closure) { |
1238 | | - $this->action['missing'] = serialize(\PHP_VERSION_ID < 70400 |
1239 | | - ? new OpisSerializableClosure($this->action['missing']) |
1240 | | - : new SerializableClosure($this->action['missing']) |
| 1235 | + $this->action['missing'] = serialize( |
| 1236 | + new SerializableClosure($this->action['missing']) |
1241 | 1237 | ); |
1242 | 1238 | } |
1243 | 1239 |
|
|
0 commit comments