Skip to content

Commit

Permalink
Pass file path instead of SplFileInfo-object
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Sep 13, 2024
1 parent a1ba0eb commit eabfe6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Registry/ElementRegistry.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ private function __construct()
$finder = Finder::create()->files()->name('element.registry.*.php')->in($classesDir);
if ($finder->hasResults()) {
foreach ($finder as $file) {
$this->importFromFile($file);
$this->importFromFile($file->getPathName());
}
}
}
Expand Down

0 comments on commit eabfe6f

Please sign in to comment.