Skip to content

[TASK] Add native type declarations to OutputFormat #875

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

Merged
merged 1 commit into from
Feb 3, 2025

Conversation

oliverklee
Copy link
Collaborator

Also fix some type annotations.

@coveralls
Copy link

Coverage Status

coverage: 45.742%. remained the same
when pulling 2307bc1 on task/outputformat-types
into cde73cd on main.

Copy link
Collaborator

@JakeQZ JakeQZ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Added some questions as comments, but which I think are beyond the scope of approving this.

* @param string $sName
*
* @return string|null
* @return string|int|bool|null
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Possibly even array, but we'll see (and that's beyond the scope of this)...

* @return OutputFormat
*/
public function nextLevel()
public function nextLevel(): self
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IIUC, we are only PHPDoccing @return $this fluent interface when the method returns itself, as opposed to when it returns some relative of the same genus or class.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, correct.

@JakeQZ JakeQZ merged commit 1fad44a into main Feb 3, 2025
21 checks passed
@JakeQZ JakeQZ deleted the task/outputformat-types branch February 3, 2025 01:52
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.

3 participants