Skip to content

Commit ad56149

Browse files
committed
Replace 'if (false)' with interface_exists checks
Updated several interface files to use 'if (! interface_exists(...))' instead of 'if (false)' for conditional interface declarations. This improves clarity and ensures interfaces are only declared when not already present. Co-Authored-By: Deeka Wong <8337659+huangdijia@users.noreply.github.com>
1 parent 0d1f038 commit ad56149

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Contract/LoggerInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
class_alias(\Psr\Log\LoggerInterface::class, LoggerInterface::class);
1515

16-
if (false) { // @phpstan-ignore if.alwaysFalse
16+
if (! interface_exists(LoggerInterface::class)) {
1717
interface LoggerInterface extends \Psr\Log\LoggerInterface
1818
{
1919
}

0 commit comments

Comments
 (0)