Use phpstan/extension-installer or add this manually to your phpstan.neon
includes:
    - vendor/szepeviktor/phpstan-editorlink/extension.neonAdd this command line option: vendor/bin/phpstan analyze --error-format=editorLink
 ------ ----------------------------------------------
  Line   authorize.php
 ------ ----------------------------------------------
  20     Function register_activation_hook not found.
         authorize.php:20
  23     Instantiated class App_Auth not found.
         authorize.php:23
 ------ ----------------------------------------------