Skip to content

Commit 2fb4c17

Browse files
committed
Don't use static here - just instantiate the right class
1 parent 557a1fc commit 2fb4c17

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Filters/Filter.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@ public function accept()
132132
*/
133133
public function getChildren()
134134
{
135-
$children = new static(
135+
$filterClass = get_called_class();
136+
$children = new $filterClass(
136137
new \RecursiveDirectoryIterator($this->current(), (\RecursiveDirectoryIterator::SKIP_DOTS | \FilesystemIterator::FOLLOW_SYMLINKS)),
137138
$this->basedir,
138139
$this->config,

0 commit comments

Comments
 (0)