Page MenuHomePhabricator

Fix errors found by PHPStan
ClosedPublic

Authored by vrana on Feb 17 2017, 5:33 PM.
Tags
None
Referenced Files
F13085256: D17377.diff
Wed, Apr 24, 11:45 PM
Unknown Object (File)
Fri, Apr 19, 6:15 PM
Unknown Object (File)
Thu, Apr 11, 8:01 AM
Unknown Object (File)
Mon, Apr 8, 3:11 AM
Unknown Object (File)
Mon, Apr 1, 4:39 PM
Unknown Object (File)
Sat, Mar 30, 4:00 PM
Unknown Object (File)
Sat, Mar 30, 4:11 AM
Unknown Object (File)
Fri, Mar 29, 3:58 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.