export: Cast File::getSize to string on dump
Xml::element needs a string to produce the tag, explicit cast the integer and convert the possible false to zero. Found by phan strict checks Change-Id: I349d9ab2f999a569a90402d5197fba56e5451fc2
This commit is contained in:
parent
ccaeb83680
commit
04d4b5addb
1 changed files with 1 additions and 1 deletions
|
|
@ -717,7 +717,7 @@ class XmlDumpWriter {
|
|||
" " . Xml::element( 'filename', null, $file->getName() ) . "\n" .
|
||||
$archiveName .
|
||||
" " . Xml::element( 'src', null, $file->getCanonicalUrl() ) . "\n" .
|
||||
" " . Xml::element( 'size', null, $file->getSize() ) . "\n" .
|
||||
" " . Xml::element( 'size', null, (string)( $file->getSize() ?: 0 ) ) . "\n" .
|
||||
" " . Xml::element( 'sha1base36', null, $file->getSha1() ) . "\n" .
|
||||
" " . Xml::element( 'rel', null, $file->getRel() ) . "\n" .
|
||||
$contents .
|
||||
|
|
|
|||
Loading…
Reference in a new issue