Skip to content

Commit 7daaacc

Browse files
authored
Update facades.md (laravel#9107)
1 parent c61bfa7 commit 7daaacc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

facades.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -203,11 +203,13 @@ Injecting a publisher implementation into the method allows us to easily test th
203203
/**
204204
* Publish the podcast.
205205
*/
206-
public function publish(): void
206+
public function publish(Publisher $publisher): void // [tl! remove]
207+
public function publish(): void // [tl! add]
207208
{
208209
$this->update(['publishing' => now()]);
209210

210-
Publisher::publish($this);
211+
$publisher->publish($this); // [tl! remove]
212+
Publisher::publish($this); // [tl! add]
211213
}
212214
}
213215

0 commit comments

Comments
 (0)