Dont call count on non countable object

This commit is contained in:
Pierre du Plessis 2017-06-23 12:52:30 +02:00
parent 9fc9cc4123
commit 635bccdf8f

View File

@ -52,7 +52,7 @@ class IcuResFileDumper extends FileDumper
$resOffset = $this->getPosition($data);
$data .= pack('v', count($messages))
$data .= pack('v', count($messages->all($domain)))
.$indexes
.$this->writePadding($data)
.$resources
@ -66,7 +66,7 @@ class IcuResFileDumper extends FileDumper
$keyTop, // Index keys top
$bundleTop, // Index resources top
$bundleTop, // Index bundle top
count($messages), // Index max table length
count($messages->all($domain)), // Index max table length
0 // Index attributes
);