Skip to content

Commit 13428db

Browse files
authored
Merge branch 'master' into issue-103/reimport-command
2 parents 4568df7 + d3932ee commit 13428db

File tree

7 files changed

+27
-19
lines changed

7 files changed

+27
-19
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ dist: bionic
22
language: php
33

44
php:
5-
- 7.2
65
- 7.3
76
- 7.4
87

98
env:
109
matrix:
1110
- LARAVEL=^6.0
1211
- LARAVEL=^7.0
12+
- LARAVEL=^8.0
1313

1414
matrix:
1515
fast_finish: true

CHANGELOG.md

+12-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,17 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
66

77
## [Unreleased]
88

9+
## [1.10.1](https://github.com/algolia/scout-extended/compare/v1.10.0...v1.10.1) - 2020-09-23
10+
### Added
11+
- Support for Laravel 6 & 7 for the latest versions ([#250](https://github.com/algolia/scout-extended/pull/250))
12+
13+
## [1.10.0](https://github.com/algolia/scout-extended/compare/v1.9.0...v1.10.0) - 2020-09-23
14+
### Added
15+
- Support to Laravel 8 ([#248](https://github.com/algolia/scout-extended/pull/248))
16+
17+
### Changed
18+
- Drops support for PHP `7.2`
19+
920
## [1.9.0](https://github.com/algolia/scout-extended/compare/v1.8.0...v1.9.0) - 2020-03-03
1021
### Added
1122
- Support to Laravel 7 ([#225](https://github.com/algolia/scout-extended/pull/225))
@@ -16,7 +27,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1627
## [1.8.0](https://github.com/algolia/scout-extended/compare/v1.7.0...v1.8.0) - 2019-10-14
1728
### Added
1829
- Support to `_snippetResult` in searchable metadata ([#207](https://github.com/algolia/scout-extended/pull/207))
19-
30+
EngineManager
2031
## [1.7.0](https://github.com/algolia/scout-extended/compare/v1.6.0...v1.7.0) - 2019-08-28
2132
### Added
2233
- Support to `laravel/framework:^6.0` ([#198](https://github.com/algolia/scout-extended/pull/198))

composer.json

+10-9
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
}
1515
],
1616
"require": {
17-
"php": "^7.2",
17+
"php": "^7.3",
1818
"ext-json": "*",
1919
"algolia/algoliasearch-client-php": "^2.5.1",
20-
"illuminate/console": "^6.0|^7.0",
21-
"illuminate/contracts": "^6.0|^7.0",
22-
"illuminate/database": "^6.0|^7.0",
23-
"illuminate/filesystem": "^6.0|^7.0",
24-
"illuminate/support": "^6.0|^7.0",
20+
"illuminate/console": "^6.0|^7.0|^8.0",
21+
"illuminate/contracts": "^6.0|^7.0|^8.0",
22+
"illuminate/database": "^6.0|^7.0|^8.0",
23+
"illuminate/filesystem": "^6.0|^7.0|^8.0",
24+
"illuminate/support": "^6.0|^7.0|^8.0",
2525
"laravel/scout": "^8.0",
2626
"riimu/kit-phpencoder": "^2.4"
2727
},
@@ -31,10 +31,11 @@
3131
"require-dev": {
3232
"fzaninotto/faker": "^1.8",
3333
"mockery/mockery": "^1.1",
34-
"nunomaduro/larastan": "^0.5",
35-
"orchestra/testbench": "^4.0|^5.0",
34+
"nunomaduro/larastan": "^0.6",
35+
"orchestra/testbench": "^4.0|^5.0|^6.0",
3636
"phpstan/phpstan": "^0.12.14",
37-
"phpunit/phpunit": "^8.0|^9.0"
37+
"phpunit/phpunit": "^8.0|^9.0",
38+
"laravel/legacy-factories": "^1.0"
3839
},
3940
"autoload-dev": {
4041
"psr-4": {

phpstan.neon.dist

+1-5
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,10 @@ parameters:
66
- src
77
checkMissingIterableValueType: false
88
ignoreErrors:
9-
- '#Using \$this in static method Algolia\\ScoutExtended\\Searchable\\Aggregator::bootSearchable\(\).#'
10-
- '#Method Algolia\\ScoutExtended\\Engines\\AlgoliaEngine::map\(\) should return Illuminate\\Database\\Eloquent\\Collection but returns Illuminate\\Support\\Collection.#'
11-
- '#Algolia\\ScoutExtended\\Engines\\AlgoliaEngine::__construct\(\) does not call parent constructor from Laravel\\Scout\\Engines\\AlgoliaEngine.#'
129
- '#Illuminate\\Database\\Eloquent\\Model::searchableAs\(\)#'
1310
- '#Property Laravel\\Scout\\Builder::\$callback \(string\) does not accept Closure\(mixed, mixed, mixed\): mixed.#'
1411
- '#Algolia\\ScoutExtended\\ScoutExtendedServiceProvider::getModel\(\)#'
1512
- '#Cannot call static method create\(\) on string\|null#'
16-
- '#Cannot call method newCollection\(\) on mixed.#'
17-
- '#Casting to string something that#'
1813
- '#Unsafe usage of new static#'
1914
- '#Method Algolia\\ScoutExtended\\Console\\Commands\\OptimizeCommand::handle\(\) has no return typehint specified.#'
15+
- '#Call to an undefined method Illuminate\\Support\\HigherOrderCollectionProxy::pushSoftDeleteMetadata\(\)#'

src/Helpers/SearchableFinder.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ private function isSearchableModel($class): bool
9494
private function getProjectClasses(): array
9595
{
9696
if (self::$declaredClasses === null) {
97-
$configFiles = Finder::create()->files()->name('*.php')->in($this->app->path());
97+
$configFiles = Finder::create()->files()->name('*.php')->in(app('path'));
9898

9999
foreach ($configFiles->files() as $file) {
100100
require_once $file;

src/Managers/EngineManager.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class EngineManager extends BaseEngineManager
2727
*/
2828
public function createAlgoliaDriver(): AlgoliaEngine
2929
{
30-
UserAgent::addCustomUserAgent('Laravel Scout Extended', '1.9.0');
30+
UserAgent::addCustomUserAgent('Laravel Scout Extended', '1.10.1');
3131

3232
return new AlgoliaEngine(SearchClient::create(config('scout.algolia.id'), config('scout.algolia.secret')));
3333
}

tests/Features/OptimizeCommandTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@ public function testThatRequiresARowOnTheDatabase(): void
4343

4444
Artisan::call('scout:optimize', ['searchable' => User::class]);
4545

46-
$this->assertFileNotExists(config_path('scout-users.php'));
46+
$this->assertFileDoesNotExist(config_path('scout-users.php'));
4747
}
4848
}

0 commit comments

Comments
 (0)