[RSS Feed/News] xf-dev:class-use-function sometimes generates bad 'use function' statements

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
It looks like xf-dev:class-use-function gets confused if there are comments before the namespace declaration, and when non-white listed functions are in an existing 'use function' statement.

Given this code;
PHP:

Code:
<?php
/**
 * @noinspection PhpMissingReturnTypeInspection
 */

namespace SV\Example;

use \XF\App;

I've seen it generate;
PHP:

Code:
<?php
const USE_FUNCTION_PLACEHOLDER = true;
/**
 * @noinspection PhpMissingReturnTypeInspection
 */

namespace SV\Example;

use \XF\App;
or...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom