for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Padawan\Parser;
use PhpParser\Parser\Php5 as ASTGenerator;
class ErrorFreePhpParser extends ASTGenerator {
public function parse($content) {
try {
return parent::parse($content);
}
catch (\Exception $e) {
return $this->semValue;