PHP Fatal error: Uncaught Error: Using $this when not in object context in file.php

Reading Time: < 1 minutes As per php documentation, Because static methods are callable without an instance of the object created, the pseudo-variable $this is not available inside methods declared as static. https://www.php.net/manual/en/language.oop5.static.php In the above code snippet, static method getValue() will throw the error this is the same use case. Things to be noted in Static Method and Static Variable: Static… Continue reading PHP Fatal error: Uncaught Error: Using $this when not in object context in file.php

Awesome Quotes

Reading Time: 3 minutes “The best way to predict the future is to invent it.” – Alan Kay “People who are really serious about software should make their own hardware.” – Alan Kay “The only way to do great work is to love what you do.” – Steve Jobs “He not busy being born is busy dying.” – Bob Dylan “History is always… Continue reading Awesome Quotes