Define method to register sources statically

This commit is contained in:
Andrea Marco Sartori 2022-11-06 01:05:00 +10:00
parent 2de167e29b
commit 870e83cd39

View File

@ -76,7 +76,7 @@ abstract class Source implements IteratorAggregate
* @param string ...$customSource
* @return void
*/
public function register(string ...$customSource): void
public static function register(string ...$customSource): void
{
foreach ($customSource as $class) {
if (!is_subclass_of($class, Source::class)) {