-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PHPCS] Make type hinting mandatory #5396
Conversation
Adding needs work because this is unlikely to pass Travis for another few rounds. |
This will be rebased to the "Dev" branch once our new branching system takes effect. |
This is now incorporating changes from 22 but there are many phan errors related to this to fix. |
@johnsaigle wouldn't it be easier to tackle this in smaller chunks ? |
@ridz1208 Maybe but not after I've put all this time into it 🤣 And also I have been doing separate PRs for this. There's a whole project about it https://github.com/aces/Loris/projects/11. It would be good to automate this once and for all. I think PRs adding PHPCS and Phan rules are always pretty big but we can sort it out. We're not releasing anytime soon so even if there are some type errors we can get them fixed. |
@johnsaigle I'm more concerned about travis |
Let me handle Travis 😈 |
Co-Authored-By: PapillonMcGill <34311645+PapillonMcGill@users.noreply.github.com>
Brief summary of changes
PHPCS now makes type hinting mandatory for function parameters and return types. You can add them automatically based on PHPDocs using
phpcbf
.mixed
annotations don't result in any changes.Links to related tickets (GitHub, Redmine, ...)