Skip to content

Commit ef01271

Browse files
Set strict parameter of in_array to true where possible
1 parent 7da8ea2 commit ef01271

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Path.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ public static function join(string ...$paths): string
668668
}
669669

670670
// Only add slash if previous part didn't end with '/' or '\'
671-
if (!\in_array(substr($finalPath, -1), ['/', '\\'])) {
671+
if (!\in_array(substr($finalPath, -1), ['/', '\\'], true)) {
672672
$finalPath .= '/';
673673
}
674674

Tests/FilesystemTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ public function testCopyCreatesTargetDirectoryIfItDoesNotExist()
167167
*/
168168
public function testCopyForOriginUrlsAndExistingLocalFileDefaultsToCopy()
169169
{
170-
if (!\in_array('https', stream_get_wrappers())) {
170+
if (!\in_array('https', stream_get_wrappers(), true)) {
171171
$this->markTestSkipped('"https" stream wrapper is not enabled.');
172172
}
173173
$sourceFilePath = 'https://symfony.com/images/common/logo/logo_symfony_header.png';

0 commit comments

Comments
 (0)