|
813 | 813 | ->makePartial() |
814 | 814 | ->shouldAllowMockingProtectedMethods(); |
815 | 815 | $composer->shouldReceive('resolveFirstPartyBoostPath') |
816 | | - ->andReturnUsing(fn (\Laravel\Roster\Package $package, string $subpath): ?string => $package->rawName() === 'pestphp/pest' ? $vendorFixture : null); |
| 816 | + ->andReturnUsing(fn (Package $package, string $subpath): ?string => $package->rawName() === 'pestphp/pest' ? $vendorFixture : null); |
817 | 817 |
|
818 | 818 | $guidelines = $composer->compose(); |
819 | 819 |
|
|
854 | 854 | ->makePartial() |
855 | 855 | ->shouldAllowMockingProtectedMethods(); |
856 | 856 | $composer->shouldReceive('resolveFirstPartyBoostPath') |
857 | | - ->andReturnUsing(fn (\Laravel\Roster\Package $package, string $subpath): ?string => $package->rawName() === 'pestphp/pest' ? $vendorFixture : null); |
| 857 | + ->andReturnUsing(fn (Package $package, string $subpath): ?string => $package->rawName() === 'pestphp/pest' ? $vendorFixture : null); |
858 | 858 |
|
859 | 859 | $keys = $composer->used(); |
860 | 860 |
|
|
876 | 876 | $composer->shouldReceive('customGuidelinePath') |
877 | 877 | ->andReturnUsing(fn ($path = ''): string => realpath(testDirectory('Fixtures/.ai/guidelines')).'/'.ltrim((string) $path, '/')); |
878 | 878 | $composer->shouldReceive('resolveFirstPartyBoostPath') |
879 | | - ->andReturnUsing(fn (\Laravel\Roster\Package $package, string $subpath): ?string => $package->rawName() === 'laravel/framework' ? $vendorFixture : null); |
| 879 | + ->andReturnUsing(fn (Package $package, string $subpath): ?string => $package->rawName() === 'laravel/framework' ? $vendorFixture : null); |
880 | 880 |
|
881 | 881 | $guidelines = $composer->guidelines(); |
882 | 882 | $laravelCore = $guidelines->get('laravel/core'); |
|
915 | 915 | ->makePartial() |
916 | 916 | ->shouldAllowMockingProtectedMethods(); |
917 | 917 | $composer->shouldReceive('resolveFirstPartyBoostPath') |
918 | | - ->andReturnUsing(fn (\Laravel\Roster\Package $package, string $subpath): ?string => $package->rawName() === '@inertiajs/react' ? $vendorFixture : null); |
| 918 | + ->andReturnUsing(fn (Package $package, string $subpath): ?string => $package->rawName() === '@inertiajs/react' ? $vendorFixture : null); |
919 | 919 |
|
920 | 920 | $guidelines = $composer->compose(); |
921 | 921 |
|
|
957 | 957 | ->makePartial() |
958 | 958 | ->shouldAllowMockingProtectedMethods(); |
959 | 959 | $composer->shouldReceive('resolveFirstPartyBoostPath') |
960 | | - ->andReturnUsing(fn (\Laravel\Roster\Package $package, string $subpath): ?string => $package->rawName() === '@inertiajs/react' ? $vendorFixture : null); |
| 960 | + ->andReturnUsing(fn (Package $package, string $subpath): ?string => $package->rawName() === '@inertiajs/react' ? $vendorFixture : null); |
961 | 961 |
|
962 | 962 | $guidelines = $composer->guidelines(); |
963 | | - $vendorEntries = $guidelines->filter(fn (array $g): bool => str_contains($g['content'], 'Vendor Core Guideline')); |
| 963 | + $vendorEntries = $guidelines->filter(fn (array $g): bool => str_contains((string) $g['content'], 'Vendor Core Guideline')); |
964 | 964 |
|
965 | 965 | expect($vendorEntries)->toHaveCount(1); |
966 | 966 | }); |
|
983 | 983 | ->makePartial() |
984 | 984 | ->shouldAllowMockingProtectedMethods(); |
985 | 985 | $composer->shouldReceive('resolveFirstPartyBoostPath') |
986 | | - ->andReturnUsing(fn (\Laravel\Roster\Package $package, string $subpath): ?string => $package->rawName() === 'pestphp/pest' ? $vendorFixture : null); |
| 986 | + ->andReturnUsing(fn (Package $package, string $subpath): ?string => $package->rawName() === 'pestphp/pest' ? $vendorFixture : null); |
987 | 987 | $composer->shouldReceive('customGuidelinePath') |
988 | 988 | ->andReturnUsing(fn ($path = ''): string => $mdOverrideDir.'/'.ltrim((string) $path, '/')); |
989 | 989 |
|
|
0 commit comments