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

Multiplier: Add missing param typehint to getValues #94

Merged
merged 1 commit into from
Feb 19, 2024
Merged

Multiplier: Add missing param typehint to getValues #94

merged 1 commit into from
Feb 19, 2024

Conversation

jtojnar
Copy link
Collaborator

@jtojnar jtojnar commented Feb 18, 2024

This fixes the following PHPStan errors:

280 Method Contributte\FormMultiplier\Multiplier::getValues() has parameter $returnType with no type specified.
290 No error to ignore is reported on line 290.

Let’s also deprecate passing bool $returnType deprecated like nette/forms 3.2.0 does:

nette/forms@0a812bd

Also use Array constant made public in 3.1.12:

nette/forms@0be7b3d

This fixes the following PHPStan errors:

  280    Method Contributte\FormMultiplier\Multiplier::getValues() has parameter $returnType with no type specified.
  290    No error to ignore is reported on line 290.

Let’s also deprecate passing bool `$returnType` deprecated like `nette/forms` 3.2.0 does:

nette/forms@0a812bd

Also use Array constant made public in 3.1.12:

nette/forms@0be7b3d
@f3l1x f3l1x merged commit 42e1ced into contributte:master Feb 19, 2024
1 of 4 checks passed
@jtojnar jtojnar deleted the fix-phpstan1 branch February 19, 2024 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants