mirror of
https://github.com/cerbero90/json-parser.git
synced 2025-01-17 21:18:41 +01:00
Define method to register sources statically
This commit is contained in:
parent
2de167e29b
commit
870e83cd39
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user