Hello. I came across the following notice about the getMethod() function belonging to the \CodeIgniter\HTTP\Request class (I'm using the latest version of CI4).
getMethod function is Deprecated.

The documentation says that the $upper parameter of the method is deprecated but not the method itself, however devsense tells me that the method is deprecated.
It seems to me that there is a problem with this.
Thank you for your excellent job 😀 .

Carlos Thank you for reporting the issue, and thank you for your support!

You are right, although it is a very specific case; the @deprecated tag is expected to apply to the entire function.

The source code of the CI should be altered and annotate the parameter itself only. It is recommended to use #[Deprecated] attribute above the parameter itself (we don't support it yet, but it should be the correct approach).

    Write a Reply...