Skip to content
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

Update to PHP 7.1 Features #1041

Open
wants to merge 5 commits into
base: 3.x
Choose a base branch
from

Conversation

RyanNerd
Copy link

@RyanNerd RyanNerd commented Jul 9, 2021

Overview

This pull request:

  • Fixes a bug
  • Adds a feature
  • Breaks backwards compatibility
  • Has tests that cover changes
  • Adds or fixes documentation

Summary

Runner.php and Robo.php updated to use scalar type hinting as well as return type designations which are PHP 7.1 features.

Description

Nearly every function has been fixed and the docblocks updated.

Note: In Runner::execute() the line:
$commandFiles = $this->getRoboFileCommands($output); can return a plethora of return types.
Recommend adding some asserts()

- `loadRoboFile(?OutputInterface)` fixed to accept null
- `getRoboFileCommands(?OutputInterface)` also fixed to accept null
- Fix incomlete or wrong docblocks
- Add some missing function return types
- Add types to function signatures as well as return types in Robo.php
- Fix incomplete or wrong docblocks
- Add types to function signatures as well as return types in Robo.php
- Fix incomplete or wrong docblocks
@RyanNerd RyanNerd mentioned this pull request Jan 7, 2022
@greg-1-anderson
Copy link
Member

c.f. #1081 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants