add ctor only test-case (#2526)

add ctor only test-case
This commit is contained in:
Tomas Votruba 2019-12-29 21:25:06 +01:00 committed by GitHub
commit 11b5bee518
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,31 @@
<?php
namespace Rector\DeadCode\Tests\Rector\Property\RemoveUnusedPrivatePropertyRector\Fixture;
class ConstructorOnly
{
/**
* @var int
*/
private $contentFinder;
public function __construct(int $contentFinder)
{
$this->contentFinder = $contentFinder;
}
}
?>
-----
<?php
namespace Rector\DeadCode\Tests\Rector\Property\RemoveUnusedPrivatePropertyRector\Fixture;
class ConstructorOnly
{
public function __construct(int $contentFinder)
{
}
}
?>