Skip to content

Add special dev to composer keywords - #1649

Merged
barryvdh merged 1 commit into
barryvdh:masterfrom
jnoordsij:patch-1
Jan 3, 2025
Merged

barryvdh merged 1 commit into
barryvdh:masterfrom
jnoordsij:patch-1

Conversation

@jnoordsij

@jnoordsij jnoordsij commented Jan 3, 2025 •

Copy link
Copy Markdown
Contributor

Summary

The special dev keyword will warn users who run composer require barryvdh/laravel-ide-helper with the following prompt:

> composer require barryvdh/laravel-ide-helper
The package you required is recommended to be placed in require-dev (because it is tagged as "dev") but you did not use --dev.
Do you want to re-run the command with --dev? [yes]?

See also https://getcomposer.org/doc/04-schema.md#keywords.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
  • Misc. change (internal, infrastructure, maintenance, etc.)

Checklist

  • Existing tests have been adapted and/or new tests have been added
  • Update the README.md
  • Code style has been fixed via composer fix-style

@mfn mfn left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Had no idea, love it!

@barryvdh
barryvdh merged commit 030f6f1 into barryvdh:master Jan 3, 2025
@barryvdh

barryvdh commented Jan 3, 2025

Copy link
Copy Markdown
Owner

Yeah nice, did not know this :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants