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)), ]); } protected function tearDown(): void { Monkey\tearDown(); parent::tearDown(); FakeChangeLog::verify(); } }