Skip to content

Commit

Permalink
Update deprecation messages (#711)
Browse files Browse the repository at this point in the history
  • Loading branch information
saimaz committed Nov 16, 2016
1 parent e8afb4b commit c8d5454
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion DependencyInjection/Compiler/MappingPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function process(ContainerBuilder $container)
if (isset($connection['auth'])) {
trigger_error(
'`auth` usage in elasticsearch bundle configuration is deprecated, ' .
'add your auth configuration directly in the host. This will be removed in v3.0. More: ' .
'add your auth configuration directly in the host. This will be removed in v2.0. More: ' .
'https://www.elastic.co/guide/en/elasticsearch/client/php-api/2.0/_security.html',
E_USER_DEPRECATED
);
Expand Down
2 changes: 1 addition & 1 deletion Result/Result.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* This class holds available types of results.
*
* @deprecated There was introduced strict type find functions and these constants are no more necessary.
* Will remove in 3.0
* Will remove in 2.0
*/
final class Result
{
Expand Down
2 changes: 1 addition & 1 deletion Service/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@ public function scroll(
} else {
trigger_error(
'$resultsType parameter was deprecated in scroll() fucntion. ' .
'Use strict type findXXX functions from repository instead. Will be removed in 3.0',
'Use strict type findXXX functions from repository instead. Will be removed in 2.0',
E_USER_DEPRECATED
);
return $this->parseResult($results, $resultsType, $scrollDuration);
Expand Down
2 changes: 1 addition & 1 deletion Service/Repository.php
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ private function getScrollConfiguration($raw, $scrollDuration)
/**
* Returns DocumentIterator with composed Document objects from array response.
*
* @deprecated Miss type in the function name, use findDocuments() instead. Will remove in 3.0
* @deprecated Miss type in the function name, use findDocuments() instead. Will remove in 2.0
*
* @param Search $search
* @return DocumentIterator
Expand Down
2 changes: 1 addition & 1 deletion Tests/Functional/Result/DocumentScanIteratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function getIterationData()
/**
* Iteration test.
*
* @deprecated Tested function will be removed in 3.0
* @deprecated Tested function will be removed in 2.0
*
* @param Search $search
* @param bool $isSorted
Expand Down
2 changes: 1 addition & 1 deletion Tests/Functional/Service/ManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ public function testParseResultsWithDifferentResultTypes()
* Tests exception that is thrown by parseResults()
* when a bad result type is provided
*
* @deprecated Function will be removed in 3.0
* @deprecated Function will be removed in 2.0
*
* @expectedException \Exception
*/
Expand Down

0 comments on commit c8d5454

Please sign in to comment.