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

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

What is the “inconsistent use of tabs and spaces in indentation” error and why is it caused? and what is the solution

Knowingly or unknowingly you have used spaces instead of tabs, or the tabs are inconsistent in your python code. To solve this problem you should first make it apparent what is culprit and where is the culprit. I mean to display the spaces and Tabs. To see that you can follow the steps below in… Continue reading What is the “inconsistent use of tabs and spaces in indentation” error and why is it caused? and what is the solution