X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FfindDeprecated.php;h=03035f756a2c805db73c015cc8d270a045ec033f;hb=72bec61d7ca4bc24731389f30c790662458c12c7;hp=ae2ee421a8a0cfcfae6d87999a4708757456a17d;hpb=993f0c6f1e1708d78cccca3e9133c62f9392e245;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/findDeprecated.php b/maintenance/findDeprecated.php index ae2ee421a8..03035f756a 100644 --- a/maintenance/findDeprecated.php +++ b/maintenance/findDeprecated.php @@ -20,6 +20,7 @@ * * @file * @ingroup Maintenance + * @phan-file-suppress PhanUndeclaredProperty Lots of custom properties */ require_once __DIR__ . '/Maintenance.php'; @@ -59,7 +60,7 @@ class DeprecatedInterfaceFinder extends FileAwareNodeVisitor { // Sort results by version, then by filename, then by name. foreach ( $this->foundNodes as $version => &$nodes ) { uasort( $nodes, function ( $a, $b ) { - return ( $a['filename'] . $a['name'] ) < ( $b['filename'] . $b['name'] ) ? -1 : 1; + return ( $a['filename'] . $a['name'] ) <=> ( $b['filename'] . $b['name'] ); } ); } ksort( $this->foundNodes );