Skip to content

Commit 30c4d51

Browse files
authored
Merge pull request #116 from laravel/fix-duplicate-function-issues
fixes #67 by only finding files that begin with an uppercase letter
2 parents 4d3cec6 + 28a8313 commit 30c4d51

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Install/GuidelineAssist.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ private function discover(callable $cb): array
6868
$finder = Finder::create()
6969
->in($appPath)
7070
->files()
71-
->name('*.php');
71+
->name('/[A-Z].*\.php$/');
7272

7373
foreach ($finder as $file) {
7474
$relativePath = $file->getRelativePathname();

src/Install/GuidelineComposer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ protected function find(): Collection
8787
$guidelines->put('foundation', $this->guideline('foundation'));
8888
$guidelines->put('boost', $this->guideline('boost/core'));
8989

90-
$guidelines->put('php', $this->guideline('php/base'));
90+
$guidelines->put('php', $this->guideline('php/core'));
9191

9292
// TODO: AI-48: Use composer target version, not PHP version. Production could be 8.1, but local is 8.4
9393
// $phpMajorMinor = PHP_MAJOR_VERSION.'.'.PHP_MINOR_VERSION;

0 commit comments

Comments
 (0)