File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 22
33declare (strict_types=1 );
44
5- namespace Maartenpaauw \Specifications ;
5+ namespace Maartenpaauw \Specifications \ Laravel ;
66
77use Closure ;
88use Illuminate \Support \Collection ;
9+ use Maartenpaauw \Specifications \Specification ;
910
1011/**
1112 * @mixin Collection
1213 */
13- class MatchingMacro
14+ class CollectionMatchingMacro
1415{
1516 public function __invoke (): Closure
1617 {
Original file line number Diff line number Diff line change 66
77use Illuminate \Support \Collection ;
88use Maartenpaauw \Specifications \Commands \MakeSpecificationCommand ;
9+ use Maartenpaauw \Specifications \Laravel \CollectionMatchingMacro ;
910use Spatie \LaravelPackageTools \Package ;
1011use Spatie \LaravelPackageTools \PackageServiceProvider ;
1112
@@ -22,12 +23,12 @@ public function configurePackage(Package $package): void
2223
2324 public function packageRegistered (): void
2425 {
25- /** @var string $name */
26- $ name = config ('specification-pattern.collection-method ' , 'matching ' );
26+ /** @var string $method */
27+ $ method = config ('specification-pattern.collection-method ' , 'matching ' );
2728
2829 Collection::macro (
29- $ name ,
30- app (MatchingMacro ::class)(),
30+ $ method ,
31+ app (CollectionMatchingMacro ::class)(),
3132 );
3233 }
3334}
You can’t perform that action at this time.
0 commit comments