File tree 3 files changed +6
-20
lines changed
3 files changed +6
-20
lines changed Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
- <phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3
- backupGlobals =" false"
4
- bootstrap =" vendor/autoload.php"
5
- colors =" true"
6
- processIsolation =" false"
7
- stopOnFailure =" false"
8
- xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/10.0/phpunit.xsd"
9
- cacheDirectory =" .phpunit.cache"
10
- backupStaticProperties =" false"
11
- >
2
+ <phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" backupGlobals =" false" bootstrap =" vendor/autoload.php" colors =" true" processIsolation =" false" stopOnFailure =" false" xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/10.0/phpunit.xsd" cacheDirectory =" .phpunit.cache" backupStaticProperties =" false" >
12
3
<testsuites >
13
4
<testsuite name =" Package Test Suite" >
14
- <directory suffix =" .php" >./tests/</directory >
15
- <exclude >./tests/views/</exclude >
16
- <exclude >./tests/DataTables/</exclude >
17
- <exclude >./tests/Providers/</exclude >
18
- <exclude >./tests/Models/</exclude >
19
- <exclude >./tests/TestCase.php</exclude >
5
+ <directory suffix =" Test.php" >./tests/</directory >
20
6
</testsuite >
21
7
</testsuites >
22
8
</phpunit >
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ interface DataTableScope
7
7
/**
8
8
* Apply a query scope.
9
9
*
10
- * @param \Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder|\Illuminate\Database\Eloquent\Relations\Relation $query
10
+ * @param \Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder|\Illuminate\Database\Eloquent\Relations\Relation|\Illuminate\Support\Collection $query
11
11
* @return mixed
12
12
*/
13
13
public function apply ($ query );
Original file line number Diff line number Diff line change @@ -710,10 +710,10 @@ public function __get(string $key)
710
710
/**
711
711
* Apply query scopes.
712
712
*
713
- * @param EloquentBuilder|QueryBuilder|EloquentRelation $query
714
- * @return EloquentBuilder|QueryBuilder|EloquentRelation
713
+ * @param EloquentBuilder|QueryBuilder|EloquentRelation|Collection $query
714
+ * @return EloquentBuilder|QueryBuilder|EloquentRelation|Collection
715
715
*/
716
- protected function applyScopes (EloquentBuilder |QueryBuilder |EloquentRelation $ query ): EloquentBuilder |QueryBuilder |EloquentRelation
716
+ protected function applyScopes (EloquentBuilder |QueryBuilder |EloquentRelation | Collection $ query ): EloquentBuilder |QueryBuilder |EloquentRelation | Collection
717
717
{
718
718
foreach ($ this ->scopes as $ scope ) {
719
719
$ scope ->apply ($ query );
You can’t perform that action at this time.
0 commit comments