static fn ($data, int $flags = 0) => json_encode($data, $flags), 'is_wp_error' => static fn ($thing): bool => $thing instanceof \WP_Error, 'absint' => static fn ($value): int => abs((int) $value), 'wp_slash' => static fn ($value) => $value, 'wp_unslash' => static fn ($value) => $value, 'sanitize_text_field' => static fn ($value): string => trim(strip_tags((string) $value)), ]); // Divi is released unless a test says otherwise (the release gate would ask WordPress and Divi). ReleaseGate::useResolver(static fn (): ReleaseStatus => ReleaseStatus::released('5.2.1')); } protected function tearDown(): void { ReleaseGate::useResolver(null); Monkey\tearDown(); parent::tearDown(); FakeChangeLog::verify(); } }