Page MenuHomePhabricator

Fix errors found by PHPStan
ClosedPublic

Authored by vrana on Feb 17 2017, 5:33 PM.
Tags
None
Referenced Files
Unknown Object (File)
Apr 3 2026, 9:49 AM
Unknown Object (File)
Apr 2 2026, 5:11 AM
Unknown Object (File)
Apr 2 2026, 5:10 AM
Unknown Object (File)
Mar 14 2026, 12:36 AM
Unknown Object (File)
Mar 12 2026, 10:13 PM
Unknown Object (File)
Mar 5 2026, 3:58 PM
Unknown Object (File)
Feb 4 2026, 3:41 PM
Unknown Object (File)
Jan 29 2026, 6:59 PM
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.