-
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add default value
ContainerConfig::withStrictMode()
and `ContainerC…
…onfig::withValidate()` (#376)
- Loading branch information
Showing
2 changed files
with
4 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,7 +73,7 @@ public function getTags(): array | |
/** | ||
* @param bool $validate Whether definitions should be validated immediately. | ||
*/ | ||
public function withValidate(bool $validate): self | ||
public function withValidate(bool $validate = true): self | ||
Check warning on line 76 in src/ContainerConfig.php GitHub Actions / mutation / PHP 8.3-ubuntu-latest
|
||
{ | ||
$new = clone $this; | ||
Check warning on line 78 in src/ContainerConfig.php GitHub Actions / mutation / PHP 8.3-ubuntu-latest
|
||
$new->validate = $validate; | ||
|
@@ -106,7 +106,7 @@ public function getDelegates(): array | |
* @param bool $useStrictMode If the automatic addition of definition when class exists and can be resolved | ||
* is disabled. | ||
*/ | ||
public function withStrictMode(bool $useStrictMode): self | ||
public function withStrictMode(bool $useStrictMode = true): self | ||
{ | ||
$new = clone $this; | ||
$new->useStrictMode = $useStrictMode; | ||
|