Page MenuHomePhabricator

tautological-expressions.lint-test
No OneTemporary

tautological-expressions.lint-test

<?php
if ($x == $x) {}
if ($x->m(3) < $x->m(3)) {}
if ($y[2] - $y[2]) {}
if ($x == $y) {}
// See xhpast 0.54 -> 0.55.
return $a->sub->value < $b->sub->value;
$skip_cache = true || $some_complicated_expression;
$skip_cache = $a || $b;
$skip_cache = false && something();
$skip_cache = f();
~~~~~~~~~~
error:3:5
error:5:5
error:7:5
error:14:15
error:16:15

File Metadata

Mime Type
text/x-php
Expires
Fri, Jul 31, 3:33 AM (1 d, 4 h)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
16232504
Default Alt Text
tautological-expressions.lint-test (361 B)

Event Timeline