This commit is contained in:
Dag 2023-09-25 21:18:48 +02:00 committed by GitHub
parent e1b911fc1f
commit cd30c25b08
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 282 additions and 884 deletions

View file

@ -33,7 +33,7 @@ class FormatFactory
* @throws \InvalidArgumentException
* @param string $name The name of the format e.g. "Atom", "Mrss" or "Json"
*/
public function create(string $name): FormatInterface
public function create(string $name): FormatAbstract
{
if (! preg_match('/^[a-zA-Z0-9-]*$/', $name)) {
throw new \InvalidArgumentException('Format name invalid!');