New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Development Code Fragment feature is not working #345
Comments
Can you please provide a reproducable file for this issue |
@manuelpichler here is the file content: <?php
namespace AppBundle\Controller\Front;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;
/**
* @Route("/hotsale")
*/
class HotSaleController extends Controller
{
/**
* @Route("/", name="front_hotsale_index", methods={"GET"})
*/
public function indexAction(Request $request)
{
$hotsales = $this->getDoctrine()->getRepository('AppBundle:HotSale')
->createQueryBuilder('h')
->select('h, v')
->join('h.video', 'v')
->orderBy('h.sequence')
->getQuery()
->getResult();
var_dump($hotsales);
$banners = $this->get('app.banner.file_manager')->findAll();
return $this->render('front/hotsale/index.html.twig', compact('hotsales', 'banners'));
}
} and I also found it maybe related to the |
Maybe PHPMD thinks |
@chrisyue can you reduce the example to the following and still confirm the issue? <?php
namespace AppBundle\Controller\Front;
class Foo
{
public function testFoo()
{
var_dump($hotsales = '');
}
} |
@ravage84 same issue, won't work until I remove And it is also strange that it shows the message |
I can confirm this issue. |
Works in the latest version that will be release today. |
Any clue when this will be fixed? Our builds are not failing while they should now |
@chilion have you updated PHPMD and PDepend to the newest version? With which version of these tools are you seeing this issue, still? |
@ravage84 phpmd version 2.6.0 && pdepend version 2.5.0 |
Same for me( |
To add to this, because I noticed that too: |
the exit code is 0, but the File.php does contain
var_dump
andprint_r
and the other features in design are working i think (I only test checking
die/exit
,goto
,eval
)The text was updated successfully, but these errors were encountered: