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
F3715471: D2692.diff
Tue, Nov 5, 06:49
F3715407: D2692.id.diff
Tue, Nov 5, 05:54
Unknown Object (File)
Fri, Nov 1, 14:57
Unknown Object (File)
Wed, Oct 30, 23:13
Unknown Object (File)
Sat, Oct 26, 23:09
Unknown Object (File)
Sat, Oct 26, 01:04
Unknown Object (File)
Thu, Oct 24, 21:02
Unknown Object (File)
Mon, Oct 21, 01:48
Subscribers

Details

Summary

Some parameters are missing for the declaration of functions.

Diff Detail

Repository
rNOTIF Notifications center
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.

18
app/Analyzers/GitHub/Events/WithCommit.php
25

Not needed whiteline.

27

Let's also define return types.

app/Phabricator/PhabricatorAPI.php
82
118

-

app/Phabricator/PhabricatorAPIFactory.php
13

-

15
23

-

25
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)