Page MenuHomePhabricator

Fix errors found by PHPStan
ClosedPublic

Authored by vrana on Feb 17 2017, 5:33 PM.
Tags
None
Referenced Files
F14457414: D17377.id41783.diff
Fri, Dec 27, 7:21 AM
F14448747: D17377.diff
Thu, Dec 26, 6:13 PM
Unknown Object (File)
Sat, Dec 21, 2:06 PM
Unknown Object (File)
Sat, Dec 21, 2:05 AM
Unknown Object (File)
Fri, Dec 20, 2:01 AM
Unknown Object (File)
Wed, Dec 18, 2:15 PM
Unknown Object (File)
Wed, Dec 18, 2:15 PM
Unknown Object (File)
Wed, Dec 18, 2:15 PM
Subscribers

Details

Test Plan

None.

Diff Detail

Repository
rP Phabricator
Branch
master
Lint
Lint Passed
Unit
Tests Skipped
Build Status
Buildable 15678
Build 20708: Run Core Tests
Build 20707: arc lint + arc unit

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.