/var/www/cobraambalaj/vendor/laravel/framework/src/Illuminate/Support/Traits
NameSizeModeActions
CapsuleManagerTrait.php14310644editdlrm
ForwardsCalls.php13690644editdlrm
Localizable.php6290644editdlrm
ReflectsClosures.php14670644editdlrm
Tappable.php3150644editdlrm
Edit: /var/www/cobraambalaj/vendor/laravel/framework/src/Illuminate/Support/Traits/ReflectsClosures.php (1467B)
getParameters())->mapWithKeys(function ($parameter) { if ($parameter->isVariadic()) { return [$parameter->getName() => null]; } return [$parameter->getName() => Reflector::getParameterClassName($parameter)]; })->all(); } /** * Get the class name of the first parameter of the given Closure. * * @param \Closure $closure * @return string * * @throws \ReflectionException|\RuntimeException */ protected function firstClosureParameterType(Closure $closure) { $types = array_values($this->closureParameterTypes($closure)); if (! $types) { throw new RuntimeException('The given Closure has no parameters.'); } if ($types[0] === null) { throw new RuntimeException('The first parameter of the given Closure is missing a type hint.'); } return $types[0]; } }