From e0019c6be3e10a7bd650a8519a0f72d85a0e76cf Mon Sep 17 00:00:00 2001 From: PrinsFrank <25006490+PrinsFrank@users.noreply.github.com> Date: Fri, 3 May 2024 16:20:16 +0200 Subject: [PATCH] Remove exception from DI post as it can actually be handled --- _posts/2024-05-03-Intro-to-dependency-injection-in-PHP.md | 1 - 1 file changed, 1 deletion(-) diff --git a/_posts/2024-05-03-Intro-to-dependency-injection-in-PHP.md b/_posts/2024-05-03-Intro-to-dependency-injection-in-PHP.md index f56fd83..e454475 100644 --- a/_posts/2024-05-03-Intro-to-dependency-injection-in-PHP.md +++ b/_posts/2024-05-03-Intro-to-dependency-injection-in-PHP.md @@ -182,7 +182,6 @@ Let's take a step back and think about all constructors that are possible. There public function __construct($foo); // Without type public function __construct(mixed $foo); // With mixed type public function __construct(string $foo); // With string type -public function __construct(A $foo); // With class type public function __construct(A|B $foo); // With Union type of classes public function __construct(A&C $foo); // With Intersection type of classes ```