Bugfix: SASL::factory() should not return void

This commit is contained in:
djmaze 2021-03-29 21:58:06 +02:00
parent 52abb3cf48
commit be855b36f1

View file

@ -19,7 +19,7 @@ abstract class SASL
return false;
}
final public static function factory(string $type) : void
final public static function factory(string $type)
{
if (\preg_match('/^([A-Z2]+)(?:-(.+))?$/Di', $type, $m)) {
$class = __CLASS__ . "\\{$m[1]}";