Skip to content

Commit

Permalink
Remove exception from DI post as it can actually be handled
Browse files Browse the repository at this point in the history
  • Loading branch information
PrinsFrank committed May 3, 2024
1 parent cf5d269 commit e0019c6
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion _posts/2024-05-03-Intro-to-dependency-injection-in-PHP.md
Original file line number Diff line number Diff line change
@@ -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
```

0 comments on commit e0019c6

Please sign in to comment.