diff --git a/src/Entity/Location.php b/src/Entity/Location.php index b307d9c..6bf920e 100644 --- a/src/Entity/Location.php +++ b/src/Entity/Location.php @@ -25,28 +25,28 @@ class Location private ?int $id = null; #[ORM\Column(type: Types::STRING, length: 255)] - private string $name; + private ?string $name = null; #[ORM\Column(type: Types::STRING, length: 255, nullable: true)] - private ?string $street; + private ?string $street = null; #[ORM\Column(type: Types::STRING, length: 255, nullable: true)] - private ?string $number; + private ?string $number = null; #[ORM\Column(type: Types::STRING, length: 255, nullable: true)] - private ?string $postalCode; + private ?string $postalCode = null; #[ORM\Column(type: Types::STRING, length: 255, nullable: true)] - private ?string $city; + private ?string $city = null; #[ORM\Column(type: Types::STRING, length: 255, nullable: true)] - private ?string $state; + private ?string $state = null; #[ORM\Column(type: Types::STRING, length: 255, nullable: true)] - private ?string $countryCode; + private ?string $countryCode = null; #[ORM\Column(type: Types::TEXT, nullable: true)] - private ?string $notes; + private ?string $notes = null; public function getId(): ?int { diff --git a/src/Entity/Traits/ExcerptTranslationTrait.php b/src/Entity/Traits/ExcerptTranslationTrait.php index e1aa6de..3a459d1 100644 --- a/src/Entity/Traits/ExcerptTranslationTrait.php +++ b/src/Entity/Traits/ExcerptTranslationTrait.php @@ -27,7 +27,7 @@ trait ExcerptTranslationTrait private ?int $id = null; #[ORM\Column(type: Types::STRING, length: 5)] - private string $locale = 'de'; + private string $locale = 'en'; #[ORM\Column(type: Types::STRING, length: 255, nullable: true)] private ?string $title = null; diff --git a/tests/Unit/Entity/LocationTest.php b/tests/Unit/Entity/LocationTest.php index df2acd5..0f4ea73 100644 --- a/tests/Unit/Entity/LocationTest.php +++ b/tests/Unit/Entity/LocationTest.php @@ -10,7 +10,7 @@ class LocationTest extends TestCase { - private $location; + private ?Location $location = null; protected function setUp(): void {