mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-24 03:35:01 +01:00
fixup! Merge pull request #2966 from rectorphp/public-abstract
This commit is contained in:
parent
5f4ca314a9
commit
6420f9322e
@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
namespace Rector\DeadCode\Tests\Rector\Stmt\RemoveUnreachableStatementRector\Fixture;
|
||||
|
||||
// @see https://3v4l.org/W54bM
|
||||
class TryFinally
|
||||
{
|
||||
public function setMultiple($values, $ttl = null): bool
|
||||
{
|
||||
try {
|
||||
return true;
|
||||
} finally {
|
||||
echo 3;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
-----
|
||||
<?php
|
||||
|
||||
namespace Rector\DeadCode\Tests\Rector\Stmt\RemoveUnreachableStatementRector\Fixture;
|
||||
|
||||
// @see https://3v4l.org/W54bM
|
||||
class TryFinally
|
||||
{
|
||||
public function setMultiple($values, $ttl = null): bool
|
||||
{
|
||||
try {
|
||||
return true;
|
||||
} finally {
|
||||
echo 3;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
Loading…
x
Reference in New Issue
Block a user