Error
- service.version: 1.46.0-wmf.4
- timestamp: 2025-12-03T07:48:20.953Z
- labels.phpversion: 8.3.26
- trace.id: bb96ac0c-4a39-4124-a1f5-36fd0c6b1c76
- Find trace.id in Logstash
[{reqId}] {exception_url} PHP Deprecated: Implicit conversion from float 33333.333333333336 to int loses precisionImpact
Notes
The start and end ids come from a getOffset method:
protected function getOffset( $indexId, $fileId ) { return $this->sitemapSize * ( $indexId * $this->indexSize + $fileId ); }
The sitemapSize property is set when creating the SitemapFileHandler and is a float:
$this->sitemapSize = ( $apiConf['pagesPerSitemap'] ?? 10_000 ) / ( count( $variants ) + 1 );
But an integer is required:
public function idRange( ?int $startId, ?int $endId ) { $this->startId = $startId; $this->endId = $endId; return $this; }