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

Add special dev to composer keywords #1649

Merged
merged 1 commit into from
Jan 3, 2025
Merged

Conversation

jnoordsij
Copy link
Contributor

@jnoordsij jnoordsij commented Jan 3, 2025

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

Copy link
Collaborator

@mfn mfn left a comment

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
17 checks passed
@barryvdh
Copy link
Owner

barryvdh commented Jan 3, 2025

Yeah nice, did not know this :)

@jnoordsij jnoordsij deleted the patch-1 branch January 3, 2025 15:36
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