Skip to content

Commit

Permalink
Keep BC with PHP 7.x
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
koriym committed Jun 12, 2024
1 parent 98977c8 commit 02d3a82
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/Fake/FakeRo.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 02d3a82

Please sign in to comment.