1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-02 22:57:26 +02:00
This commit is contained in:
Dag
2023-09-25 21:18:48 +02:00
committed by GitHub
parent e1b911fc1f
commit cd30c25b08
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!');