Skip to content

Conversation

@rdss-sknott
Copy link
Contributor

  • Split version decorators in MinimalVersionDecorator and VersionDecorator

@rdss-sknott rdss-sknott self-assigned this Feb 13, 2024
@rdss-sknott rdss-sknott changed the title Use different PHP version information for PHPCS and PHPStant Use different PHP version information for PHPCS and PHPStan Feb 13, 2024
* Split version decorators in MinimalVersionDecorator and VersionDecorator
* Updated min versions of some dependencies
@rdss-sknott rdss-sknott marked this pull request as ready for review February 13, 2024 13:33
@rdss-sknott rdss-sknott requested review from a team February 13, 2024 13:34
use Zooroyal\CodingStandard\CommandLine\StaticCodeAnalysis\Generic\TerminalCommand\Multiprocess\MultiprocessTerminalCommand;
use Zooroyal\CodingStandard\CommandLine\StaticCodeAnalysis\Generic\TerminalCommand\Multiprocess\MultiprocessTrait;
// phpcs:ignore -- I did not find a way to either break this line or to make it shorter.
use Zooroyal\CodingStandard\CommandLine\StaticCodeAnalysis\Generic\TerminalCommand\PhpVersion\MinimalVersionDependantTerminalCommand;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this would be possible, but does not quite make it more readable I think 😅

use Zooroyal\CodingStandard\CommandLine\StaticCodeAnalysis\Generic\TerminalCommand\PhpVersion\{
    MinimalVersionDependantTerminalCommand,
    MinimalVersionDependentTrait,
    PhpVersionConverter
};

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah. thought about that but came to the same conclusion as you did. :/

use Zooroyal\CodingStandard\CommandLine\StaticCodeAnalysis\Generic\TerminalCommand\PhpVersion\ComposerInterpreter;
use Zooroyal\CodingStandard\CommandLine\StaticCodeAnalysis\Generic\TerminalCommand\PhpVersion\ConstraintToVersionConverter;
use Zooroyal\CodingStandard\CommandLine\StaticCodeAnalysis\Generic\TerminalCommand\PhpVersion\MinimalVersionDecorator;
// phpcs:ignore -- I did not find a way to either break this line or to make it shorter.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

like above: could be shortened with use MyNamespace\{ClassA, ClassB}

@rdss-sknott rdss-sknott merged commit b2c2224 into main Feb 13, 2024
@rdss-sknott rdss-sknott deleted the minimal-php-version branch February 13, 2024 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

6 participants