Skip to content

Commit ee51d1a

Browse files
committed
Fix CS
1 parent 8949144 commit ee51d1a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/App/Entity/Book.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function getTitle(): string
7070
return $this->title;
7171
}
7272

73-
public function setCategory(Category $category = null): self
73+
public function setCategory(?Category $category = null): self
7474
{
7575
$this->category = $category;
7676

tests/App/Entity/Sale.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class Sale
3131
#[ORM\Column(type: 'integer')]
3232
protected $countSales;
3333

34-
public function setBook(Book $book = null): self
34+
public function setBook(?Book $book = null): self
3535
{
3636
$this->book = $book;
3737

0 commit comments

Comments
 (0)