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

Add returntypes where possible #48

Merged
merged 1 commit into from
Oct 26, 2024
Merged

Conversation

Zombaya
Copy link
Contributor

@Zombaya Zombaya commented Aug 9, 2024

As a replacement for #40, I have created this PR to add return types wherever it was possible.

This should add the return types as added by the interface as well.

For the ones of the interface where it was not possible (because mixed doesn't exist yet on 7.1), we add it with in a docblock with a ReturnTypeWillChange-attribute.

Additionally, I changed some instances of "static public function foo()" to "public static function foo()".

Finally I added "public" to all constants which were public implicitly.

Dev-dependency

I added pear/pear-core-minimal as a dev-dependency because otherwise I was not able to run the unit-tests, although this will probably be fixed in pear/OLE#33.

* In case the exact returntype is not yet possible, add it in docblock with a ReturnTypeWillChange-attribute.
* Changed some instances of "static public function foo()" to "public
  static function foo()".
* Added "public" to all constants which were public implicitly
@hfig hfig merged commit 0c50103 into hfig:master Oct 26, 2024
@hfig
Copy link
Owner

hfig commented Oct 26, 2024

OK. This looks fine. Have merged and released.

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