Php, exception, is there a path which not covered? -


hard describe, given example?

public function x() {     try     {         operation();         return true;     }     catch (\exception $e)     {         return false;     }      can reach line??? } 

so there way neither return true nor false run? somehow. anyhow.

you should not able reach specified line.

have come across case happening? if so, provide code , can tell why/how happening. if not, answer no.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -