We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8949144 commit ee51d1aCopy full SHA for ee51d1a
tests/App/Entity/Book.php
@@ -70,7 +70,7 @@ public function getTitle(): string
70
return $this->title;
71
}
72
73
- public function setCategory(Category $category = null): self
+ public function setCategory(?Category $category = null): self
74
{
75
$this->category = $category;
76
tests/App/Entity/Sale.php
@@ -31,7 +31,7 @@ class Sale
31
#[ORM\Column(type: 'integer')]
32
protected $countSales;
33
34
- public function setBook(Book $book = null): self
+ public function setBook(?Book $book = null): self
35
36
$this->book = $book;
37
0 commit comments