forked from FriendsOfSymfony/FOSElasticaBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
88 changed files
with
841 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
includes: | ||
- phpstan-baseline.neon | ||
parameters: | ||
level: 5 | ||
reportUnmatchedIgnoredErrors: false | ||
inferPrivatePropertyTypeFromConstructor: true | ||
treatPhpDocTypesAsCertain: false | ||
paths: | ||
- src | ||
# - tests | ||
ignoreErrors: | ||
- message: /Trying to mock an undefined method/ | ||
path: tests/ | ||
- message: '/Property .* is never read, only written/' | ||
path: tests/ | ||
- message: '/Call to method PHPUnit\\Framework\\Assert::assert\w*\(\).*will always evaluate to (true|false)/' | ||
path: tests/ | ||
- message: '/Parameter #\d \$\w+ of class .+ constructor expects array[{<].+[}>], array{.*} given/' | ||
path: tests/ | ||
# return type was fixed in psr/log v1.0.2 (https://github.com/php-fig/log/releases/tag/1.0.2) | ||
- message: '/Return type \(void\) of method FOS\\ElasticaBundle\\Logger\\ElasticaLogger::log\(\) should be compatible with return type \(null\) of method Psr\\Log\\LoggerInterface::log\(\)/' | ||
path: src/Logger/ElasticaLogger.php | ||
# it became generic in v3.5.2 (https://github.com/BabDev/Pagerfanta/blob/HEAD/CHANGELOG.md#352-2022-01-24) | ||
- message: '/PHPDoc tag @implements contains generic type Pagerfanta\\Adapter\\AdapterInterface<mixed> but interface Pagerfanta\\Adapter\\AdapterInterface is not generic/' | ||
path: src/Paginator/FantaPaginatorAdapter.php | ||
# there are no Enums in php 7.4 | ||
- message: '/(Class BackedEnum not found)|(Access to property \$value on an unknown class BackedEnum)/' | ||
path: src/Transformer/ModelToElasticaAutoTransformer.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,28 @@ | |
* Interface Index config interface. | ||
* | ||
* @author Dmitry Balabka <[email protected]> | ||
* | ||
* @phpstan-type TMapping = array<string, mixed> | ||
* @phpstan-type TSettings = array<string, mixed> | ||
* @phpstan-type TDynamicDateFormats = list<non-empty-string> | ||
* @phpstan-type TDynamic = true|'runtime' | ||
* @phpstan-type TConfig = array{ | ||
* elasticsearch_name?: string, | ||
* name: string, | ||
* settings?: TSettings, | ||
* use_alias?: bool, | ||
* config: TElasticConfig, | ||
* mapping: TMapping, | ||
* model: mixed, | ||
* template?: string, | ||
* } | ||
* @phpstan-type TElasticConfig = array{ | ||
* date_detection?: bool, | ||
* dynamic_date_formats?: TDynamicDateFormats, | ||
* analyzer?: string, | ||
* numeric_detection?: bool, | ||
* dynamic?: TDynamic | ||
* } | ||
*/ | ||
interface IndexConfigInterface | ||
{ | ||
|
@@ -24,20 +46,30 @@ public function getModel(): ?string; | |
|
||
public function getName(): string; | ||
|
||
/** | ||
* @phpstan-return TSettings | ||
*/ | ||
public function getSettings(): array; | ||
|
||
public function getDateDetection(): ?bool; | ||
|
||
/** | ||
* @phpstan-return ?TDynamicDateFormats | ||
*/ | ||
public function getDynamicDateFormats(): ?array; | ||
|
||
public function getAnalyzer(): ?string; | ||
|
||
/** | ||
* @phpstan-return TMapping | ||
*/ | ||
public function getMapping(): array; | ||
|
||
public function getNumericDetection(): ?bool; | ||
|
||
/** | ||
* @return string|bool|null | ||
* @phpstan-return ?TDynamic | ||
*/ | ||
public function getDynamic(); | ||
} |
Oops, something went wrong.