wp-includes/SimplePie/src/SimplePie.php:2500Sanitize feed data
$datastring$typeSimplePie\int-mask-of<SimplePie::CONSTRUCT_*>$basestringoptional''string public function sanitize(string $data, int $type, string $base = '') { try { // This really returns string|false but changing encoding is uncommon and we are going to deprecate it, so let’s just lie to PHPStan in the interest of cleaner annotations. return $this->sanitize->sanitize($data, $type, $base); } catch (SimplePieException $e) { if (!$this->enable_exceptions) { $this->error = $e->getMessage(); $this->registry->call(Misc::class, 'error', [$this->error, E_USER_WARNING, $e->getFile(), $e->getLine()]); return ''; } throw $e; } }One change between 6.7.7 and 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
$type retyped from int to SimplePie\int-mask-of<SimplePie::CONSTRUCT_*>.verified against sourcesrc/wp-includes/SimplePie/src/SimplePie.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.