Hello DEVSENSE Community.
I recently moved my development environment from PHP 5.6 to PHP 7.1. PHP DEVSENSE (in VS 2019) reports errors for any user defined exception:
class MyUserException extends Exception
Error PHP2414 Class MyUserException does not implement abstract methods...
I looked in the PHP manual and see that Exception in PHP 7 now implements Throwable where in PHP 5, it did not. My thinking is that this should not be reporting an error. When I go to the definition of "Exception" (via F12) the following class definition is displayed (from metadata):
class Exception extends \Throwable implements \Throwable
while the manual shows
Exception implements Throwable
which seems to make sense.
Any idea what may be causing this?
Note: I have not seen any runtime errors as a result of this.
Thanks,
TVC
BTW, neither of the Quick Actions (override abstract members, implement abstract members) do the right thing ("override" implements __toString() and that's it, while "implement" does nothing).