Page MenuHomeDevCentral

Add the missing parameter's type declaration of each functions
ClosedPublic

Authored by DorianWinty on May 22 2022, 15:44.
Tags
None
Referenced Files
F3766127: D2692.diff
Fri, Nov 22, 16:35
F3763974: D2692.id6819.diff
Fri, Nov 22, 03:38
Unknown Object (File)
Mon, Nov 18, 11:46
Unknown Object (File)
Sat, Nov 16, 05:47
Unknown Object (File)
Thu, Nov 14, 20:29
Unknown Object (File)
Tue, Nov 12, 10:35
Unknown Object (File)
Tue, Nov 12, 07:47
Unknown Object (File)
Tue, Nov 12, 04:54
Subscribers

Details

Summary

Some parameters are missing for the declaration of functions.

Diff Detail

Repository
rNOTIF Notifications center
Lint
Lint Passed
Unit
Tests Passed
Branch
useNames

Event Timeline

dereckson requested changes to this revision.May 26 2022, 21:08

Same issues for files below.

app/Analyzers/DockerHub/BaseEvent.php
17

OK, but a better type will be available with T1076.

app/Analyzers/GitHub/Events/RepositoryEvent.php
16

No whiteline is needed between params and return value.

19
app/Analyzers/GitHub/Events/WithCommit.php
26

Not needed whiteline.

29

Let's also define return types.

app/Phabricator/PhabricatorAPI.php
82
118

-

app/Phabricator/PhabricatorAPIFactory.php
13

-

16
24

-

27
This revision now requires changes to proceed.May 26 2022, 21:08
DorianWinty marked 11 inline comments as done.

modify folowing comment

This revision is now accepted and ready to land.May 27 2022, 20:16

Per discussion on Whatsapp, Dorian intends to add return types in a second commit.

(not that we should discuss open source software development in a private system like WhatsApp, but we were discussing there when the issue was raised)