Skip to content

Commit bb37903

Browse files
committed
Use short array deconstruction syntax.
1 parent 76830f4 commit bb37903

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Extension/Core/Type/FileType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ private function getFileUploadError(int $errorCode)
153153
$messageParameters = [];
154154

155155
if (\UPLOAD_ERR_INI_SIZE === $errorCode) {
156-
list($limitAsString, $suffix) = $this->factorizeSizes(0, self::getMaxFilesize());
156+
[$limitAsString, $suffix] = $this->factorizeSizes(0, self::getMaxFilesize());
157157
$messageTemplate = 'The file is too large. Allowed maximum size is {{ limit }} {{ suffix }}.';
158158
$messageParameters = [
159159
'{{ limit }}' => $limitAsString,

FormBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ public function getIterator()
228228
*/
229229
private function resolveChild(string $name): FormBuilderInterface
230230
{
231-
list($type, $options) = $this->unresolvedChildren[$name];
231+
[$type, $options] = $this->unresolvedChildren[$name];
232232

233233
unset($this->unresolvedChildren[$name]);
234234

0 commit comments

Comments
 (0)