Comments (1)
That's expected, the rule is removing Expression
, not empty Else_
, for that, another rule may be needed.
from rector.
Related Issues (20)
- [ERROR] Could not process due to "System error: "Undefined constant "RepoName\Shell\CONSTANT_NAME"" HOT 2
- Doesn't change deprecated code @return HOT 1
- [DX] Add Get Rules Command / Rule multiple option
- [Bug] Functions with comments are being converted to short functions HOT 2
- `RenameClassRector` renames function calls
- OptionalParametersAfterRequiredRector not making all replacements HOT 3
- Incorrect behavior of RemoveUnusedPrivateMethodRector
- Enum method rename doesn't work
- AddTypeToConstRector wrongly deduces type for `const FOO = PHP_INT_MAX`
- AddTypeToConstRector does not support interfaces, traits and enums HOT 1
- `LiteralGetToRequestClassConstantRector` won't work on `KernelBrowser` using Symfony 5+ HOT 3
- What happened to ReplaceAssertArraySubsetRector.php? HOT 3
- Rector fixes formatting for php template syntax HOT 5
- Wrong documentation for `FinalizeTestCaseClassRector` HOT 1
- AllowDynamicProperties rule works not as expected HOT 3
- SimplifyStrposLowerRector isn't safe and should be removed HOT 1
- Incorrect behavior of PreparedValueToEarlyReturnRector
- "System error: "Scope not available on "PhpParser\Node\Expr\Array_" node, but is required by a refactorWithScope() method of "Rector\CodeQuality\Rector\Array_\CallableThisArrayToAnonymousFunctionRector" HOT 3
- Rule to convert "@param int|null $param" to "function method(?int $param)" HOT 7
- System error: "Scope not available on "PhpParser\Node\Stmt\ClassMethod" node, but is required by a refactorWithScope() method of "Rector\TypeDeclaration\Rector\ClassMethod\ReturnNeverTypeRector" rule. Fix scope refresh on changed nodes first HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rector.