Skip to content

Commit 47b07a0

Browse files
committed
clean up remaining deprecations
1 parent b9ea219 commit 47b07a0

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

Filesystem.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -600,10 +600,6 @@ public function mirror($originDir, $targetDir, \Traversable $iterator = null, $o
600600
*/
601601
public function isAbsolutePath($file)
602602
{
603-
if (null === $file) {
604-
@trigger_error(sprintf('Calling "%s()" with a null in the $file argument is deprecated since Symfony 4.4.', __METHOD__), E_USER_DEPRECATED);
605-
}
606-
607603
return strspn($file, '/\\', 0, 1)
608604
|| (\strlen($file) > 3 && ctype_alpha($file[0])
609605
&& ':' === $file[1]

Tests/FilesystemTest.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1400,15 +1400,6 @@ public function providePathsForIsAbsolutePath()
14001400
];
14011401
}
14021402

1403-
/**
1404-
* @group legacy
1405-
* @expectedDeprecation Calling "Symfony\Component\Filesystem\Filesystem::isAbsolutePath()" with a null in the $file argument is deprecated since Symfony 4.4.
1406-
*/
1407-
public function testIsAbsolutePathWithNull()
1408-
{
1409-
$this->assertFalse($this->filesystem->isAbsolutePath(null));
1410-
}
1411-
14121403
public function testTempnam()
14131404
{
14141405
$dirname = $this->workspace;

0 commit comments

Comments
 (0)