Skip to content

Commit c8d5454

Browse files
authored
Update deprecation messages (#711)
1 parent e8afb4b commit c8d5454

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

DependencyInjection/Compiler/MappingPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function process(ContainerBuilder $container)
4949
if (isset($connection['auth'])) {
5050
trigger_error(
5151
'`auth` usage in elasticsearch bundle configuration is deprecated, ' .
52-
'add your auth configuration directly in the host. This will be removed in v3.0. More: ' .
52+
'add your auth configuration directly in the host. This will be removed in v2.0. More: ' .
5353
'https://www.elastic.co/guide/en/elasticsearch/client/php-api/2.0/_security.html',
5454
E_USER_DEPRECATED
5555
);

Result/Result.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* This class holds available types of results.
1616
*
1717
* @deprecated There was introduced strict type find functions and these constants are no more necessary.
18-
* Will remove in 3.0
18+
* Will remove in 2.0
1919
*/
2020
final class Result
2121
{

Service/Manager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ public function scroll(
722722
} else {
723723
trigger_error(
724724
'$resultsType parameter was deprecated in scroll() fucntion. ' .
725-
'Use strict type findXXX functions from repository instead. Will be removed in 3.0',
725+
'Use strict type findXXX functions from repository instead. Will be removed in 2.0',
726726
E_USER_DEPRECATED
727727
);
728728
return $this->parseResult($results, $resultsType, $scrollDuration);

Service/Repository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ private function getScrollConfiguration($raw, $scrollDuration)
232232
/**
233233
* Returns DocumentIterator with composed Document objects from array response.
234234
*
235-
* @deprecated Miss type in the function name, use findDocuments() instead. Will remove in 3.0
235+
* @deprecated Miss type in the function name, use findDocuments() instead. Will remove in 2.0
236236
*
237237
* @param Search $search
238238
* @return DocumentIterator

Tests/Functional/Result/DocumentScanIteratorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function getIterationData()
8080
/**
8181
* Iteration test.
8282
*
83-
* @deprecated Tested function will be removed in 3.0
83+
* @deprecated Tested function will be removed in 2.0
8484
*
8585
* @param Search $search
8686
* @param bool $isSorted

Tests/Functional/Service/ManagerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ public function testParseResultsWithDifferentResultTypes()
348348
* Tests exception that is thrown by parseResults()
349349
* when a bad result type is provided
350350
*
351-
* @deprecated Function will be removed in 3.0
351+
* @deprecated Function will be removed in 2.0
352352
*
353353
* @expectedException \Exception
354354
*/

0 commit comments

Comments
 (0)