Welcome Guest, Not a member yet? Register   Sign In
VScode - undefined 'getVar' method in version 4.1.2
#2

It’s a known issue and being worked on, but it is part of something much bigger so probably won’t have a short-term solution: https://github.com/codeigniter4/CodeIgni...ssues/4356. If you can share the actual files and context where you receive the error we may be able to add some more typehints like the one above you mentioned on BaseController.

One more thing, make sure your typehint is to the correct namespaced class. Using “HTTP\IncomingRequest” won’t work from the Controllers namespace - you need “CodeIgniter\HTTP\IncomingRequest”
Reply


Messages In This Thread
RE: VScode - undefined 'getVar' method in version 4.1.2 - by MGatner - 05-23-2021, 05:05 AM



Theme © iAndrew 2016 - Forum software by © MyBB