mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-08 17:10:54 +01:00
96112cb1f0
2da49992cc
[Downgrade] [PHP 7.2] Make DowngradeParameterTypeWideningRector always downgrade to phpdoc type (#390)
19 lines
571 B
PHP
19 lines
571 B
PHP
<?php
|
|
|
|
declare (strict_types=1);
|
|
namespace Rector\Naming\Guard;
|
|
|
|
use Rector\Naming\Contract\Guard\ConflictingNameGuardInterface;
|
|
use Rector\Naming\Contract\RenameValueObjectInterface;
|
|
use Rector\Naming\ValueObject\PropertyRename;
|
|
final class NotPrivatePropertyGuard implements \Rector\Naming\Contract\Guard\ConflictingNameGuardInterface
|
|
{
|
|
/**
|
|
* @param \Rector\Naming\Contract\RenameValueObjectInterface $renameValueObject
|
|
*/
|
|
public function isConflicting($renameValueObject) : bool
|
|
{
|
|
return !$renameValueObject->isPrivateProperty();
|
|
}
|
|
}
|