From 02d3a82a2df7b5963165fd6f4d1b3bfeebc04a0a Mon Sep 17 00:00:00 2001 From: Akihito Koriyama Date: Wed, 12 Jun 2024 11:13:27 +0900 Subject: [PATCH] Keep BC with PHP 7.x Update query annotations in FakeRo test This commit updates and adds query annotations in the FakeRo test. It adds a query annotation to the `noSql` method and modifies the id parameter in the `withQuery` method's `@Query` annotation for enhanced templating. --- tests/Fake/FakeRo.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/Fake/FakeRo.php b/tests/Fake/FakeRo.php index caed1b9..d45f21f 100644 --- a/tests/Fake/FakeRo.php +++ b/tests/Fake/FakeRo.php @@ -22,13 +22,16 @@ public function onGet(string $id) return $this; } + /** + * @Query(id="_non_exists_", type="row") + */ #[Query('_non_exists_')] public function noSql(): void { } /** - * @Query(id="todo_item_by_id?id=num", type="row", templated=true) + * @Query(id="todo_item_by_id?id={num}", type="row", templated=true) */ #[Query('todo_item_by_id?id={num}', type: 'row', templated: true)] public function withQuery(string $num): ResourceObject