File manager - Edit - /home/autoph/public_html/projects/aha-api/vendor/laravel/framework/src/Illuminate/Collections/functions.php
Back
<?php namespace Illuminate\Support; if (! function_exists('Illuminate\Support\enum_value')) { /** * Return a scalar value for the given value that might be an enum. * * @internal * * @template TValue * @template TDefault * * @param TValue $value * @param TDefault|callable(TValue): TDefault $default * @return ($value is empty ? TDefault : mixed) */ function enum_value($value, $default = null) { return match (true) { $value instanceof \BackedEnum => $value->value, $value instanceof \UnitEnum => $value->name, default => $value ?? value($default), }; } }
| ver. 1.4 |
.
| PHP 8.1.32 | Generation time: 0.03 |
proxy
|
phpinfo
|
Settings