You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<?phpdeclare(strict_types=1);
/* * This file is part of the TYPO3 CMS project. * * It is free software; you can redistribute it and/or modify it under * the terms of the GNU General Public License, either version 2 * of the License, or any later version. * * For the full copyright and license information, please read the * LICENSE.txt file that was distributed with this source code. * * The TYPO3 project - inspiring people to share! */namespaceTYPO3\CMS\Install\SystemEnvironment\ServerResponse;
useGuzzleHttp\Client;
useGuzzleHttp\Exception\BadResponseException;
useGuzzleHttp\Exception\TransferException;
usefunctionGuzzleHttp\Promise\settle;
usePsr\Http\Message\ResponseInterface;
useTYPO3\CMS\Backend\Routing\UriBuilder;
useTYPO3\CMS\Core\Crypto\Random;
useTYPO3\CMS\Core\Http\Uri;
useTYPO3\CMS\Core\Messaging\FlashMessage;
useTYPO3\CMS\Core\Messaging\FlashMessageQueue;
useTYPO3\CMS\Core\Type\ContextualFeedbackSeverity;
useTYPO3\CMS\Core\Utility\GeneralUtility;
useTYPO3\CMS\Install\Controller\ServerResponseCheckController;
useTYPO3\CMS\Install\SystemEnvironment\CheckInterface;
useTYPO3\CMS\Reports\Status;
/** * Checks how use web server is interpreting static files concerning * their `content-type` and evaluated content in HTTP responses. * * @internal should only be used from within TYPO3 Core */classServerResponseCheckimplementsCheckInterface
{
...
Expected Behavior
The import statements are ordered by type like follows:
<?phpdeclare(strict_types=1);
....
use GuzzleHttp\Client;
useGuzzleHttp\Exception\BadResponseException;
useGuzzleHttp\Exception\TransferException;
usePsr\Http\Message\ResponseInterface;
// ...usefunctionGuzzleHttp\Promise\settle;
/** * Checks how use web server is interpreting static files concerning * their `content-type` and evaluated content in HTTP responses. * * @internal should only be used from within TYPO3 Core */classServerResponseCheckimplementsCheckInterface
{
...
Is there an existing issue for this?
Operating System
ne matter
Composer version
no matter
PHP version
8.1
TYPO3 Coding Standards Package version
Latest stable release
Additional version information
0.7.1
Current Behavior
The import statemnt is not ordered by import type see "use function " block example in core:
https://github.com/TYPO3/typo3/blob/60bcbf2cdf4a7d262d77127becfd72ec92a1a993/typo3/sysext/install/Classes/SystemEnvironment/ServerResponse/ServerResponseCheck.php#L20-L36
Expected Behavior
The import statements are ordered by type like follows:
Steps To Reproduce
No response
Anything else?
See:
https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/v3.13.2/doc/rules/import/ordered_imports.rst
Would propose to replace the defined rule
from
'ordered_imports' => true
to
I did the same on EXT:solr 12 LTS preparations.
The text was updated successfully, but these errors were encountered: