mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-02 22:57:26 +02:00
refactor (#3708)
This commit is contained in:
@@ -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!');
|
||||
|
Reference in New Issue
Block a user