Commit 07771692 authored by Jan Kuchař's avatar Jan Kuchař

bug: fromScalar for non-existing value ends up as an error

parent 5640aa86
<?php declare(strict_types=1);
require __DIR__ . '/../bootstrap.php';
/**
* @method static Enum1 VALUE()
*/
class Enum1 extends \Grifart\Enum\Enum
{
use Grifart\Enum\AutoInstances;
protected const VALUE = 'value';
}
Enum1::fromScalar('non-existing');
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment