Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[make:*] use sorted use statements #1106

Merged
merged 21 commits into from
May 3, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
use required php version instead
  • Loading branch information
jrushlow committed May 2, 2022
commit e429059174459a9efde26a8aa39d01680ad8c5e8
2 changes: 1 addition & 1 deletion src/Maker/MakeSerializerNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function generate(InputInterface $input, ConsoleStyle $io, Generator $gen
$useStatements = new UseStatementGenerator([
NormalizerInterface::class,
ObjectNormalizer::class,
CacheableSupportsMethodInterface::class
CacheableSupportsMethodInterface::class,
]);

$generator->generateClass(
Expand Down
6 changes: 1 addition & 5 deletions tests/Maker/MakeCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,8 @@ protected function getMakerClass(): string
public function getTestDetails(): \Generator
{
yield 'it_makes_a_command_no_attributes' => [$this->createMakerTest()
->setRequiredPhpVersion(80000)
->run(function (MakerTestRunner $runner) {
if (\PHP_MAJOR_VERSION < 8) {
// @legacy Remove when PHP 7 is now longer supported.
$this->markTestSkipped('Test only runs on PHP < 8');
}

$runner->runMaker([
// command name
'app:foo',
Expand Down