Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Always be carefull when using empty() . As stated here(https://www.php.net/manual/en/function.empty) the values below will return "TRUE"
Well, if I got you right I'd say that this metadata doesn't belong to the version. It sounds more like we're talking about a
Release
that consists of aVersion
and maybe someMetadata
or even more specific objects.In version object we can load some meta-data and when we up version by creating new object we must hand over this data for new object for close losing meta-data in new wersion.
It`s not important for solution on codewars. I`,m just trying talking with good programmer like u <3 about this.
Thanks for your comment. Can you elaborate on why you think creating a new object for each version is a bad idea?
Good idea with version class. But allways create new object with next version it`s a bad idea if we look in feature. Varsion can make some properties like 'path to artifacts', etc and best way will be increment integers in current object.
I just added the missing
$
to the argument of each function plus some type hints.Not sure why the tests are failing now.
Yes, sorry. I mixed up "Test Cases" and "Sample Test Cases". I just forked and resubmitted.
Thanks. Rejecting this version since there is only one test cases. Needs multiple test cases, including some random. You can fork and resubmit.
PHP translation
Thanks. I'll try that
Every user with enough honor (I don't remember, how much exactly) can do that. You may ask on gitter, if anyone would like to review your translation: https://gitter.im/Codewars/codewars.com/kata-authoring-help
So, how does the approval process work?
Can only the author of the kata approve my translation? 🤔
That validation is part of the task.
Fixed.
The expected and actual values of the assertion in the PHP version are in the wrong order.
This leads to errors that might confuse the beginners this kata is aimed at.