Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Do not exclude all source code in the default template #952

Merged
merged 9 commits into from
Apr 10, 2024
15 changes: 8 additions & 7 deletions src/scoper.inc.php.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@ use Isolated\Symfony\Component\Finder\Finder;

// Example of collecting files to include in the scoped build but to not scope
// leveraging the isolated finder.
$excludedFiles = array_map(
static fn (SplFileInfo $fileInfo) => $fileInfo->getPathName(),
iterator_to_array(
Finder::create()->files()->in(__DIR__),
false,
),
);
// $excludedFiles = array_map(
// static fn (SplFileInfo $fileInfo) => $fileInfo->getPathName(),
// iterator_to_array(
// Finder::create()->files()->in(__DIR__),
// false,
// ),
// );
$excludedFiles = [];

return [
// The prefix configuration. If a non-null value is used, a random prefix
Expand Down
Loading