/** * @param string $string * * @return static */ public static function fromString($string) { $string = (new Str($string))->fromCanonical(self::NS_SEPARATOR); return parent::fromString((string) $string); }
/** * @dataProvider noScalarsProvider * @expectedException \hollodotme\MilestonES\Exceptions\IdentifierArgumentIsNotScalar */ public function testCannotBeContructedFromExpressions($expression) { Identifier::fromString($expression); }