File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -118,10 +118,7 @@ protected function resolveByType(
118118 }
119119
120120 // 2nd group of extensions: targeting parent classes
121- $ parents = class_parents ($ service , false );
122- if ($ parents === false ) {
123- $ parents = [];
124- }
121+ $ parents = class_parents ($ service , false ) ?: [];
125122 foreach ($ parents as $ parentName ) {
126123 $ byParent = $ this ->extensions [self ::typeId ($ parentName )] ?? null ;
127124 if (($ byParent !== null ) && ($ byParent !== [])) {
@@ -130,10 +127,7 @@ protected function resolveByType(
130127 }
131128
132129 // 3rd group of extensions: targeting implemented interfaces
133- $ interfaces = class_implements ($ service , false );
134- if ($ interfaces === false ) {
135- $ interfaces = [];
136- }
130+ $ interfaces = class_implements ($ service , false ) ?: [];
137131 foreach ($ interfaces as $ interfaceName ) {
138132 $ byInterface = $ this ->extensions [self ::typeId ($ interfaceName )] ?? null ;
139133 if (($ byInterface !== null ) && ($ byInterface !== [])) {
You can’t perform that action at this time.
0 commit comments