Skip to content

Conversation

@janedbal
Copy link
Contributor

@janedbal janedbal commented Nov 29, 2022

This allows me to have easily-copyable file+line even in GitLab CI even in docker and clickable locally.

parameters:
    editorUrl: 'phpstorm://open?file=%%relFile%%&line=%%line%%'
    editorUrlTitle: '%%file%%:%%line%%'
$ php bin/phpstan analyse --debug src/Parallel/ParallelAnalyser.php
Using php 8.1 from dockerhub
Note: Using configuration file /usr/src/myapp/phpstan.neon.
/usr/src/myapp/src/Parallel/ParallelAnalyser.php
 ------ ------------------------------------------------------------ 
  Line   ParallelAnalyser.php                                        
 ------ ------------------------------------------------------------ 
  195    Anonymous function has an unused use $internalErrorsCount.  
         ✏️  src/Parallel/ParallelAnalyser.php:195                   
 ------ ------------------------------------------------------------

Related: phpstan/phpstan#7796

@ondrejmirtes ondrejmirtes merged commit 6bde609 into phpstan:1.9.x Dec 1, 2022
@ondrejmirtes
Copy link
Member

Thank you! Please also send an update to the docs https://phpstan.org/user-guide/output-format#opening-file-in-an-editor with an explanation why one might want to change this. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants