|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #78602 declare on same line as opening tag causes a one line offset
Submitted: 2019-09-27 13:02 UTC Modified: 2020-01-20 17:13 UTC
From: Assigned:
Status: Open Package: *General Issues
PHP Version: 7.2.23 OS: Linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2019-09-27 13:02 UTC]
Code coverage by PHPUnit, stopping on breakpoints, etc all have an offset of 1 line when putting `declare(strict_types=1);` on the same line as the opening tag.

Test script:
<?php declare(strict_types=1);



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2019-09-27 15:25 UTC]
I suggest to report Xdebug related issues on <>.
 [2020-01-20 17:13 UTC]
-Package: Xdebug +Package: *General Issues
 [2020-01-20 17:13 UTC]
I can't reproduce this with this little information. But if line numbers are wrong, that's not something Xdebug can fix as it is information provided by the PHP engine
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sun Oct 25 06:01:24 2020 UTC