Skip to content

Commit e3d835e

Browse files
authored
Revert "prevent "Notice: Undefined variable: attributes""
1 parent ab5194d commit e3d835e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

core/file-upload.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,7 @@ final class ResolveMediaObjectContentUrlSubscriber implements EventSubscriberInt
208208
return;
209209
}
210210
211-
$attributes = RequestAttributesExtractor::extractAttributes($request);
212-
if (!$attributes || !\is_a($attributes['resource_class'], MediaObject::class, true)) {
211+
if (!$attributes = RequestAttributesExtractor::extractAttributes($request) || !\is_a($attributes['resource_class'], MediaObject::class, true)) {
213212
return;
214213
}
215214

0 commit comments

Comments
 (0)