-
-
Notifications
You must be signed in to change notification settings - Fork 340
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DeadCode] Handle native function call not exists in RemoveUnusedPriv…
…atePropertyRector (#72) * [DeadCode] Handle native function call not exists in RemoveUnusedPrivatePropertyRector * phpstan * [ci-review] Rector Rectify Co-authored-by: kaizen-ci <info@kaizen-ci.org>
- Loading branch information
1 parent
cc546e6
commit ce7bdaa
Showing
3 changed files
with
39 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
...roperty/RemoveUnusedPrivatePropertyRector/Fixture/native_function_call_not_exists.php.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\DeadCode\Rector\Property\RemoveUnusedPrivatePropertyRector\Fixture; | ||
|
||
class NativeFunctionCallNotExists | ||
{ | ||
private $resultID; | ||
private $rowOffset; | ||
public function getFieldCount(): int | ||
{ | ||
return sqlsrv_num_fields($this->resultID); | ||
} | ||
} | ||
|
||
?> | ||
----- | ||
<?php | ||
|
||
namespace Rector\Tests\DeadCode\Rector\Property\RemoveUnusedPrivatePropertyRector\Fixture; | ||
|
||
class NativeFunctionCallNotExists | ||
{ | ||
private $resultID; | ||
public function getFieldCount(): int | ||
{ | ||
return sqlsrv_num_fields($this->resultID); | ||
} | ||
} | ||
|
||
?> |