Welcome Guest, Not a member yet? Register   Sign In
Creation of dynamic property Config\Cache::$file is deprecated
#5

(04-24-2023, 12:00 PM)captain-sensible Wrote: it looks like your on Linux 

Code:
rm -rf  vendor

So you removed  dir vendor and contents. I don't do that when i update ; out of interest t what was the thinking behind doing that ?

But the depreciated  from my cursory  look seems to be that classes have to have all  properties defined.

so  i think  that exception might be to do with: https://php.watch/versions/8.2/dynamic-p...deprecated

removing vendor and reinstalling; upgrading composer; etc. were listed as steps for upgrading from 4.2.10 to 4.3.3


(04-24-2023, 03:56 PM)kenjis Wrote: Fixing that error is very easy. Just add the property in the class.
https://github.com/codeigniter4/CodeIgni...#L111-L114

But I don't know why your Config\Cache does not have the $file.

Yes, I knew that I could solve by adding the property in the class, but also wonder why that class doesn't have the property (even after upgraded)
Reply


Messages In This Thread
RE: Creation of dynamic property Config\Cache::$file is deprecated - by kabeza - 04-25-2023, 04:12 AM



Theme © iAndrew 2016 - Forum software by © MyBB