Page MenuHomePhabricator

Fix errors found by PHPStan
ClosedPublic

Authored by vrana on Feb 17 2017, 5:33 PM.
Tags
None
Referenced Files
F19554223: D17377.diff
Thu, Jan 29, 6:59 PM
F19527132: D17377.diff
Sun, Jan 18, 11:09 PM
F19527097: D17377.diff
Sun, Jan 18, 10:46 PM
F19524394: D17377.id41804.diff
Sun, Jan 18, 12:42 AM
F19469127: D17377.diff
Sun, Jan 4, 4:29 PM
F19117092: D17377.id41804.diff
Dec 9 2025, 7:48 PM
F19116902: D17377.id41804.diff
Dec 9 2025, 7:46 PM
F19045661: D17377.diff
Nov 27 2025, 8:15 AM
Subscribers

Details

Test Plan

None.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

src/applications/diffusion/editor/DiffusionCommitEditEngine.php
114

LOL.

(These are from PHPStan's level 5 errors.)

Good catch! What's the underlying rule that detected that? (Variable assignment without use before next assignment?)

src/applications/diffusion/editor/DiffusionCommitEditEngine.php
114

Ugh, thanks.

This revision is now accepted and ready to land.Feb 17 2017, 5:46 PM

Comparing a string to false with ===.

This revision was automatically updated to reflect the committed changes.