Skip to content

Commit 78f2d2c

Browse files
committed
Merge branch 'refs/heads/v5'
2 parents 451b311 + ce883b4 commit 78f2d2c

File tree

69 files changed

+1153
-789
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+1153
-789
lines changed

.github/workflows/code-style.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Install php and composer
1313
uses: shivammathur/setup-php@v2
1414
with:
15-
php-version: 8.1
15+
php-version: 8.2
1616
coverage: none
1717
tools: composer:v2
1818

.github/workflows/static-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Install php and composer
1313
uses: shivammathur/setup-php@v2
1414
with:
15-
php-version: 8.1
15+
php-version: 8.2
1616
coverage: none
1717
tools: composer:v2
1818

.github/workflows/test.yml

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,12 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
php: [7.4, 8.0, 8.1]
10+
php: [8.2]
1111
include:
12-
- php: 7.4
13-
scout: 8.0
14-
testbench: 6.0
15-
phpunit: 9.5
16-
elastic-search: 8.0.0
17-
18-
- php: 8.0
19-
scout: 9.0
20-
testbench: 7.0
21-
phpunit: 9.5
22-
elastic-search: 8.4.0
23-
24-
- php: 8.1
12+
- php: 8.2
2513
scout: 10.0
26-
testbench: 8.0
27-
phpunit: 9.5
14+
testbench: 9.0
15+
phpunit: 11.0
2816
elastic-search: 8.6.2
2917
steps:
3018
- name: Checkout code

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
/vendor
44
/composer.lock
55
/phpunit.xml
6+
/.phpunit.cache
67
/.phpunit.result.cache
78
/.php_cs
89
/.php_cs.cache

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ MYSQL_USER := test
1212
MYSQL_PASSWORD := test
1313

1414
## elasticsearch config
15-
ES_VERSION ?= 8.2.0
15+
ES_VERSION ?= 8.6.0
1616
ES_CONTAINER_IMAGE := elasticsearch:${ES_VERSION}
1717
ES_CONTAINER_NAME := elastic-scout-driver-plus-elasticsearch
1818
ES_HOST_PORT := 29200

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,12 @@ Elastic Scout Driver Plus supports:
5050

5151
The current version of Elastic Scout Driver Plus has been tested with the following configuration:
5252

53-
* PHP 7.4-8.x
53+
* PHP 8.2
5454
* Elasticsearch 8.x
55-
* Laravel 7.x-10.x
56-
* Laravel Scout 7.x-10.x
55+
* Laravel 11.x
56+
* Laravel Scout 10.x
57+
58+
If your project uses older Laravel (or PHP) version check [the previous major version](https://github.com/babenkoivan/elastic-scout-driver-plus/tree/v4.7.0#compatibility) of the package.
5759

5860
## Installation
5961

composer.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,13 @@
3838
}
3939
},
4040
"require": {
41-
"php": "^7.4 || ^8.0",
42-
"babenkoivan/elastic-scout-driver": "^3.1",
43-
"babenkoivan/elastic-adapter": "^3.4"
41+
"php": "^8.2",
42+
"babenkoivan/elastic-scout-driver": "^4.0"
4443
},
4544
"require-dev": {
46-
"phpunit/phpunit": "^9.5",
47-
"orchestra/testbench": "^8.0",
48-
"babenkoivan/elastic-migrations": "^3.3",
45+
"phpunit/phpunit": "^11.0",
46+
"orchestra/testbench": "^9.0",
47+
"babenkoivan/elastic-migrations": "^4.0",
4948
"laravel/scout": "^10.0",
5049
"friendsofphp/php-cs-fixer": "^3.14",
5150
"phpstan/phpstan": "^1.10",

phpstan-baseline.neon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
parameters:
22
ignoreErrors:
33
-
4-
message: "#^Method Elastic\\\\ScoutDriverPlus\\\\Builders\\\\SearchParametersBuilder\\:\\:resolveJoinedIndexName\\(\\) should return string but returns mixed\\.$#"
4+
message: "#^Method Elastic\\\\ScoutDriverPlus\\\\Builders\\\\SearchParametersBuilder\\:\\:resolveJoinedIndexName\\(\\) should return string but returns string\\|null\\.$#"
55
count: 1
66
path: src/Builders/SearchParametersBuilder.php
77

phpstan.neon.dist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ includes:
33

44
parameters:
55
level: max
6-
checkMissingIterableValueType: false
7-
checkGenericClassInNonGenericObjectType: false
86
paths:
97
- src
108
ignoreErrors:
9+
- identifier: missingType.iterableValue
10+
- identifier: missingType.generics
1111
- '#Parameter .+? of method Illuminate\\Support\\Collection<.+?>::.+?\(\) expects .+? given#'
1212
- '#Call to an undefined method Illuminate\\Database\\Eloquent\\Model::(getScoutKey|getScoutKeyName|getScoutModelsByIds|queryScoutModelsByIds|searchableAs|searchableUsing|scoutMetadata|pushSoftDeleteMetadata|toSearchableArray|withTrashed|searchableRouting)\(\)#'
1313
- '#Call to an undefined method Illuminate\\Support\\Collection::withSearchableRelations\(\)#'

phpunit.xml.dist

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,13 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/8.4/phpunit.xsd"
3+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.1/phpunit.xsd"
44
bootstrap="vendor/autoload.php"
55
executionOrder="depends,defects"
6-
forceCoversAnnotation="true"
7-
beStrictAboutCoversAnnotation="true"
86
beStrictAboutOutputDuringTests="true"
9-
beStrictAboutTodoAnnotatedTests="true"
10-
verbose="true"
11-
colors="true">
12-
<coverage processUncoveredFiles="true">
13-
<include>
14-
<directory suffix=".php">src</directory>
15-
</include>
16-
<exclude>
17-
<file>src/ServiceProvider.php</file>
18-
</exclude>
19-
</coverage>
7+
colors="true"
8+
cacheDirectory=".phpunit.cache"
9+
requireCoverageMetadata="true"
10+
beStrictAboutCoverageMetadata="true">
2011
<testsuites>
2112
<testsuite name="unit">
2213
<directory suffix="Test.php">tests/Unit</directory>
@@ -35,4 +26,12 @@
3526
<env name="DB_PASSWORD" value="test"/>
3627
<env name="ELASTIC_HOST" value="127.0.0.1:29200"/>
3728
</php>
29+
<source>
30+
<include>
31+
<directory suffix=".php">src</directory>
32+
</include>
33+
<exclude>
34+
<file>src/ServiceProvider.php</file>
35+
</exclude>
36+
</source>
3837
</phpunit>

0 commit comments

Comments
 (0)