Page MenuHomePhabricator

Fix errors found by PHPStan
ClosedPublic

Authored by vrana on Feb 17 2017, 5:33 PM.
Tags
None
Referenced Files
F18599150: D17377.diff
Sat, Sep 13, 6:49 AM
F18595792: D17377.diff
Fri, Sep 12, 10:53 PM
F18588176: D17377.diff
Thu, Sep 11, 11:29 PM
F18508540: D17377.id.diff
Fri, Sep 5, 2:52 AM
F18500606: D17377.diff
Thu, Sep 4, 9:11 PM
F18094370: D17377.id.diff
Aug 7 2025, 10:06 PM
F18089590: D17377.id41804.diff
Aug 6 2025, 11:50 AM
F18087415: D17377.id41783.diff
Aug 6 2025, 3:49 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.