-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c40a81a
commit 8707241
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8707241
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.
@DarkSide666 Fine, my intention was to prevent mistakes and always require the class name as the first array element as it defines the class used for everything else, so it makes sense to always defined before anything else.
8707241
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.
Well normally yes you set class first.
But what if seed is generated by merging it together from parts? For example,
array_merge(['ui'=>'some css classes'], ['View'])
. These parts can come from different places in code and as result we never know which array element will actually be "the first one" and picking wrong one can lead to unpredictable errors.I think checking
0
is fine and also it's BC.