mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
docs: add int to @param $id
There is no way to pass int value to the controller method now, unless extending Router. But $id may be essentially int, and we should support int.
This commit is contained in:
parent
a0ababfa56
commit
d6cd7b1b43
@ -34,7 +34,7 @@ class ResourceController extends BaseResource
|
||||
/**
|
||||
* Return the properties of a resource object
|
||||
*
|
||||
* @param string|null $id
|
||||
* @param int|string|null $id
|
||||
*
|
||||
* @return Response|string|void
|
||||
*/
|
||||
@ -66,7 +66,7 @@ class ResourceController extends BaseResource
|
||||
/**
|
||||
* Return the editable properties of a resource object
|
||||
*
|
||||
* @param string|null $id
|
||||
* @param int|string|null $id
|
||||
*
|
||||
* @return Response|string|void
|
||||
*/
|
||||
@ -78,7 +78,7 @@ class ResourceController extends BaseResource
|
||||
/**
|
||||
* Add or update a model resource, from "posted" properties
|
||||
*
|
||||
* @param string|null $id
|
||||
* @param string|null|int$id
|
||||
*
|
||||
* @return Response|string|void
|
||||
*/
|
||||
@ -90,7 +90,7 @@ class ResourceController extends BaseResource
|
||||
/**
|
||||
* Delete the designated resource object from the model
|
||||
*
|
||||
* @param string|null $id
|
||||
* @param int|string|null $id
|
||||
*
|
||||
* @return Response|string|void
|
||||
*/
|
||||
|
@ -31,7 +31,7 @@ class ResourcePresenter extends BaseResource
|
||||
/**
|
||||
* Present a view to present a specific resource object
|
||||
*
|
||||
* @param string|null $id
|
||||
* @param int|string|null $id
|
||||
*
|
||||
* @return Response|string|void
|
||||
*/
|
||||
@ -64,7 +64,7 @@ class ResourcePresenter extends BaseResource
|
||||
/**
|
||||
* Present a view to edit the properties of a specific resource object
|
||||
*
|
||||
* @param string|null $id
|
||||
* @param int|string|null $id
|
||||
*
|
||||
* @return Response|string|void
|
||||
*/
|
||||
@ -77,7 +77,7 @@ class ResourcePresenter extends BaseResource
|
||||
* Process the updating, full or partial, of a specific resource object.
|
||||
* This should be a POST.
|
||||
*
|
||||
* @param string|null $id
|
||||
* @param int|string|null $id
|
||||
*
|
||||
* @return Response|string|void
|
||||
*/
|
||||
@ -89,7 +89,7 @@ class ResourcePresenter extends BaseResource
|
||||
/**
|
||||
* Present a view to confirm the deletion of a specific resource object
|
||||
*
|
||||
* @param string|null $id
|
||||
* @param int|string|null $id
|
||||
*
|
||||
* @return Response|string|void
|
||||
*/
|
||||
@ -101,7 +101,7 @@ class ResourcePresenter extends BaseResource
|
||||
/**
|
||||
* Process the deletion of a specific resource object
|
||||
*
|
||||
* @param string|null $id
|
||||
* @param int|string|null $id
|
||||
*
|
||||
* @return Response|string|void
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user