Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
tipuloidea
/
back
/
vendor
/
spatie
/
laravel-data
/
src
/
Exceptions
:
CannotCastEnum.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php namespace Spatie\LaravelData\Exceptions; use Exception; use Spatie\LaravelData\Support\DataProperty; class CannotCastEnum extends Exception { public static function create(string $type, mixed $value, DataProperty $property): self { return new self("Could not cast enum for property {$property->className}::{$property->name} with value `{$value}` into a `{$type}`"); } }