Skip to content

Commit d55ac78

Browse files
committed
Leave legacy query as default runner for now
1 parent 1c46fc4 commit d55ac78

13 files changed

+118
-12
lines changed

src/Query/Argument.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* @copyright Bastian Allgeier
1616
* @license https://opensource.org/licenses/MIT
1717
*
18-
* @deprecated 6.0.0 Will be removed in Kirby 7
18+
* @todo Deprecate in v6
1919
*/
2020
class Argument
2121
{

src/Query/Arguments.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* @copyright Bastian Allgeier
1616
* @license https://opensource.org/licenses/MIT
1717
*
18-
* @deprecated 6.0.0 Will be removed in Kirby 7
18+
* @todo Deprecate in v6
1919
*
2020
* @extends \Kirby\Toolkit\Collection<\Kirby\Query\Argument>
2121
*/

src/Query/Expression.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* @copyright Bastian Allgeier
1616
* @license https://opensource.org/licenses/MIT
1717
*
18-
* @deprecated 6.0.0 Will be removed in Kirby 7
18+
* @todo Deprecate in v6
1919
*/
2020
class Expression
2121
{

src/Query/Query.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,10 @@ public function resolve(array|object $data = []): mixed
7676
return $data;
7777
}
7878

79+
// TODO: switch to 'interpreted' as default in v6
7980
// TODO: remove in v7
8081
// @codeCoverageIgnoreStart
81-
$mode = App::instance()->option('query.runner', 'interpreted');
82+
$mode = App::instance()->option('query.runner', 'legacy');
8283

8384
if ($mode === 'legacy') {
8485
return $this->resolve_legacy($data);

src/Query/Segment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* @copyright Bastian Allgeier
1818
* @license https://opensource.org/licenses/MIT
1919
*
20-
* @deprecated 6.0.0 Will be removed in Kirby 7
20+
* @todo Deprecate in v6
2121
*/
2222
class Segment
2323
{

src/Query/Segments.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* @copyright Bastian Allgeier
1616
* @license https://opensource.org/licenses/MIT
1717
*
18-
* @deprecated 6.0.0 Will be removed in Kirby 7
18+
* @todo Deprecate in v6
1919
*
2020
* @extends \Kirby\Toolkit\Collection<\Kirby\Query\Segment>
2121
*/

tests/Query/ArgumentTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
/**
99
* @coversDefaultClass \Kirby\Query\Argument
10-
* @deprecated 6.0.0 Will be removed in Kirby 7
10+
* @todo Deprecate in v6
1111
*/
1212
class ArgumentTest extends TestCase
1313
{

tests/Query/ArgumentsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
/**
88
* @coversDefaultClass \Kirby\Query\Arguments
9-
* @deprecated 6.0.0 Will be removed in Kirby 7
9+
* @todo Deprecate in v6
1010
*/
1111
class ArgumentsTest extends TestCase
1212
{

tests/Query/ExpressionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
/**
99
* @coversDefaultClass \Kirby\Query\Expression
10-
* @deprecated 6.0.0 Will be removed in Kirby 7
10+
* @todo Deprecate in v6
1111
*/
1212
class ExpressionTest extends TestCase
1313
{

tests/Query/QueryTest.php renamed to tests/Query/QueryInterpretedTest.php

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,19 @@
1212
/**
1313
* @coversDefaultClass \Kirby\Query\Query
1414
*/
15-
class QueryTest extends TestCase
15+
class QueryInterpretedTest extends TestCase
1616
{
17+
protected function setUp(): void
18+
{
19+
new App([
20+
'options' => [
21+
'query' => [
22+
'runner' => 'interpreted'
23+
]
24+
]
25+
]);
26+
}
27+
1728
protected function tearDown(): void
1829
{
1930
App::destroy();

0 commit comments

Comments
 (0)