diff --git a/src/TCKimlikNo.php b/src/TCKimlikNo.php index d741176..313d70f 100644 --- a/src/TCKimlikNo.php +++ b/src/TCKimlikNo.php @@ -28,7 +28,7 @@ public static function validate( bool $autoUppercase = true, null|int|string $birthMonth = null, null|int|string $birthDay = null, - bool $forcePublicApi = false, + bool $forcePublicApi = true, ): bool { if ($autoUppercase) { $name = self::toUppercaseTr($name); diff --git a/tests/TCKimlikNoValidateTest.php b/tests/TCKimlikNoValidateTest.php index c4dd938..dca3ad1 100644 --- a/tests/TCKimlikNoValidateTest.php +++ b/tests/TCKimlikNoValidateTest.php @@ -99,7 +99,7 @@ public function it_sends_a_request_to_the_search_api_if_there_is_a_birth_year_an Soap::fake(); $this->assertTrue( - TCKimlikNo::validate('10000000146', 'Y. EMRE', 'DELİGÖZ', '1900', true, 1, 1) + TCKimlikNo::validate('10000000146', 'Y. EMRE', 'DELİGÖZ', '1900', true, 1, 1, false) ); Soap::assertNothingSent();