Skip to content

Commit 39f861c

Browse files
minor #53073 Set strict parameter of in_array to true where possible (alexandre-daubois)
This PR was merged into the 7.1 branch. Discussion ---------- Set `strict` parameter of `in_array` to true where possible | Q | A | ------------- | --- | Branch? | 7.1 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | - | License | MIT This pull request introduces a comprehensive update where the `in_array` function is now consistently invoked with the `strict` parameter set to `true`. This change is implemented across various components of the framework to enhance type safety and reliability. To me, this update is a step towards more explicit and error-resistant code. Commits ------- 442329a50f Set `strict` parameter of `in_array` to true where possible
2 parents fa4f30d + c90e4c5 commit 39f861c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Transport/AbstractTransportFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function __construct(EventDispatcherInterface $dispatcher = null, HttpCli
3232

3333
public function supports(Dsn $dsn): bool
3434
{
35-
return \in_array($dsn->getScheme(), $this->getSupportedSchemes());
35+
return \in_array($dsn->getScheme(), $this->getSupportedSchemes(), true);
3636
}
3737

3838
/**

0 commit comments

Comments
 (0)