-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Use a php class for the definitions to avoid loading problems #2052
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
Conversation
|
@nickvergessen, thanks for your PR! By analyzing the history of the files in this pull request, we identified @icewind1991, @LukasReschke and @rullzer to be potential reviewers. |
|
Fine by me. LGTM |
|
Ah conflicts!!!! |
|
Yeah share by mail was merged, all okay will update tomorrow |
Signed-off-by: Joas Schilling <coding@schilljs.com>
9755186 to
706b5c3
Compare
|
Rebased |
Current coverage is 57.77% (diff: 100%)@@ master #2052 diff @@
==========================================
Files 1096 1097 +1
Lines 62915 62923 +8
Methods 7015 7016 +1
Messages 0 0
Branches 0 0
==========================================
+ Hits 36344 36352 +8
Misses 26571 26571
Partials 0 0
|
Signed-off-by: Joas Schilling <coding@schilljs.com>
LukasReschke
left a comment
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.
Looks awesome! Two nitpicks, will just adjust them myself and push to this branch :)
🚀 👍
| * @return string[] | ||
| */ | ||
| protected function getRequiredParameters($type) { | ||
| protected function getRequiredParameters($type, $definition) { |
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.
array $definition here? :)
| return $this->definitions[$type]; | ||
| } | ||
|
|
||
| throw new InvalidObjectExeption('Object type is undefined'); |
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.
Missing test. Will add myself :)
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
|
LGTM |
|
👍 for lukas commit |
|
👍 |
To avoid the "Can not load file ..../definitions.json" we see on drone from time to time.
cc @MorrisJobke @rullzer @LukasReschke