-
Notifications
You must be signed in to change notification settings - Fork 658
Add illuminate/contracts dependency #7
Add illuminate/contracts dependency #7
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For me personally I like the added typehinting, but as far as I remember all of the required illuminate/* packages have a direct dependency on illuminate/contracts themselves.
I'm not sure what the "best practises" are for this, but I think it's alright to rely on their dependency of illuminate/contracts.
| "guzzlehttp/psr7": "^1.5", | ||
| "illuminate/broadcasting": "5.7.*", | ||
| "illuminate/console": "5.7.*", | ||
| "illuminate/contracts": "5.7.*", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| "illuminate/contracts": "5.7.*", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure what the "best practises" are for this, but I think it's alright to rely on their dependency of illuminate/contracts.
We should not care about other packages dependencies. Each package should declare what dependencies it relies upon. If the dependencies this package depends upon suddenly drop their dependency on illuminate/contracts (which has a really low probability but still...) this package would also break which of course shouldn't happen.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That does make sense. Thank you for taking the time to clarify. ✌️
|
Thanks for your work on this but I'm gonna pass. I think using |
|
@freekmurze Hm, I disagree. First, this PR is more about adding the |
The
illuminate/contractsdependency was missing in composer.json and I refactored someconfigcalls to make the dependency more obvious.