File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ public function getAttributes(array $fields = [])
44
44
{
45
45
$ attributes = [];
46
46
47
- foreach (self :: resolveFields ($ this ->fields (), $ fields ) as $ name => $ definition ) {
47
+ foreach ($ this -> resolveFields ($ this ->fields (), $ fields ) as $ name => $ definition ) {
48
48
$ attributes [$ name ] = is_string ($ definition ) ? $ this ->$ definition : call_user_func ($ definition , $ this , $ name );
49
49
}
50
50
return $ attributes ;
@@ -57,7 +57,7 @@ public function getRelationships()
57
57
{
58
58
$ relationships = [];
59
59
60
- foreach (self :: resolveFields ($ this ->extraFields ()) as $ name => $ definition ) {
60
+ foreach ($ this -> resolveFields ($ this ->extraFields ()) as $ name => $ definition ) {
61
61
if (is_string ($ definition )) {
62
62
$ relation = $ this ->$ definition ;
63
63
if (!is_array ($ relation )) {
@@ -122,7 +122,7 @@ public function extraFields()
122
122
* @param array $fieldSet
123
123
* @return array
124
124
*/
125
- protected static function resolveFields (array $ fields , array $ fieldSet = [])
125
+ protected function resolveFields (array $ fields , array $ fieldSet = [])
126
126
{
127
127
$ result = [];
128
128
You can’t perform that action at this time.
0 commit comments