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(laravel): do not require files while autoconfiguring #7024

Merged
merged 1 commit into from
Mar 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/Laravel/testbench.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,5 @@ workbench:
to: app/ApiResource
- from: ./workbench/app/State/
to: app/State
- from: ./workbench/app/Modules/
to: app/Modules
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

/*
* This file is part of the API Platform project.
*
* (c) Kévin Dunglas <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

declare(strict_types=1);

namespace Workbench\App\Modules\FirstModule\Tests\Feature;

use Tests\TestCase;

pest()->extend(TestCase::class);

it('does nothing', function (): void {
});
2 changes: 1 addition & 1 deletion src/Metadata/Util/ReflectionClassRecursiveIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public static function getReflectionClassesFromDirectories(array $directories):
new \RecursiveDirectoryIterator($path, \FilesystemIterator::SKIP_DOTS | \FilesystemIterator::FOLLOW_SYMLINKS),
\RecursiveIteratorIterator::LEAVES_ONLY
),
'/^.+\.php$/i',
'/^(?!.*Test\.php$).+\.php$/i',
\RecursiveRegexIterator::GET_MATCH
);

Expand Down
Loading