Dont call count on non countable object
This commit is contained in:
parent
9fc9cc4123
commit
635bccdf8f
@ -52,7 +52,7 @@ class IcuResFileDumper extends FileDumper
|
|||||||
|
|
||||||
$resOffset = $this->getPosition($data);
|
$resOffset = $this->getPosition($data);
|
||||||
|
|
||||||
$data .= pack('v', count($messages))
|
$data .= pack('v', count($messages->all($domain)))
|
||||||
.$indexes
|
.$indexes
|
||||||
.$this->writePadding($data)
|
.$this->writePadding($data)
|
||||||
.$resources
|
.$resources
|
||||||
@ -63,11 +63,11 @@ class IcuResFileDumper extends FileDumper
|
|||||||
$root = pack('V7',
|
$root = pack('V7',
|
||||||
$resOffset + (2 << 28), // Resource Offset + Resource Type
|
$resOffset + (2 << 28), // Resource Offset + Resource Type
|
||||||
6, // Index length
|
6, // Index length
|
||||||
$keyTop, // Index keys top
|
$keyTop, // Index keys top
|
||||||
$bundleTop, // Index resources top
|
$bundleTop, // Index resources top
|
||||||
$bundleTop, // Index bundle top
|
$bundleTop, // Index bundle top
|
||||||
count($messages), // Index max table length
|
count($messages->all($domain)), // Index max table length
|
||||||
0 // Index attributes
|
0 // Index attributes
|
||||||
);
|
);
|
||||||
|
|
||||||
$header = pack('vC2v4C12@32',
|
$header = pack('vC2v4C12@32',
|
||||||
|
Reference in New Issue
Block a user