From 89f4dca72b507dcb01c098e9be375326e2badabb Mon Sep 17 00:00:00 2001 From: PrinsFrank Date: Sat, 13 May 2023 10:40:08 +0200 Subject: [PATCH] Fix renamed countries causing all of them being marked removed --- dev/DataSource/Country/CountryAlpha2Source.php | 3 ++- dev/DataSource/Country/CountryAlpha3Source.php | 3 ++- dev/DataSource/Country/CountryNumericSource.php | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/dev/DataSource/Country/CountryAlpha2Source.php b/dev/DataSource/Country/CountryAlpha2Source.php index eb71feeb..24a03cdc 100644 --- a/dev/DataSource/Country/CountryAlpha2Source.php +++ b/dev/DataSource/Country/CountryAlpha2Source.php @@ -5,6 +5,7 @@ namespace PrinsFrank\Standards\Dev\DataSource\Country; use PrinsFrank\Standards\Country\CountryAlpha2; +use PrinsFrank\Standards\Country\CountryName; use PrinsFrank\Standards\Dev\DataSource\HtmlDataSource; use Symfony\Component\Panther\Client; use Symfony\Component\Panther\DomCrawler\Crawler; @@ -48,7 +49,7 @@ public static function getSpecFQN(): string public static function getKeyEnumFQN(): string { - return self::getSpecFQN(); + return CountryName::class; } public static function afterPageLoad(Client $client, Crawler $crawler): void diff --git a/dev/DataSource/Country/CountryAlpha3Source.php b/dev/DataSource/Country/CountryAlpha3Source.php index 9a2d3a8b..32d57032 100644 --- a/dev/DataSource/Country/CountryAlpha3Source.php +++ b/dev/DataSource/Country/CountryAlpha3Source.php @@ -5,6 +5,7 @@ namespace PrinsFrank\Standards\Dev\DataSource\Country; use PrinsFrank\Standards\Country\CountryAlpha3; +use PrinsFrank\Standards\Country\CountryName; use PrinsFrank\Standards\Dev\DataSource\HtmlDataSource; use Symfony\Component\Panther\Client; use Symfony\Component\Panther\DomCrawler\Crawler; @@ -48,7 +49,7 @@ public static function getSpecFQN(): string public static function getKeyEnumFQN(): string { - return self::getSpecFQN(); + return CountryName::class; } public static function afterPageLoad(Client $client, Crawler $crawler): void diff --git a/dev/DataSource/Country/CountryNumericSource.php b/dev/DataSource/Country/CountryNumericSource.php index 13dbf354..a9758918 100644 --- a/dev/DataSource/Country/CountryNumericSource.php +++ b/dev/DataSource/Country/CountryNumericSource.php @@ -4,6 +4,7 @@ namespace PrinsFrank\Standards\Dev\DataSource\Country; +use PrinsFrank\Standards\Country\CountryName; use PrinsFrank\Standards\Country\CountryNumeric; use PrinsFrank\Standards\Dev\DataSource\HtmlDataSource; use Symfony\Component\Panther\Client; @@ -48,7 +49,7 @@ public static function getSpecFQN(): string public static function getKeyEnumFQN(): string { - return self::getSpecFQN(); + return CountryName::class; } public static function afterPageLoad(Client $client, Crawler $crawler): void