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

implemented requirements of the PHP 8 #348

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

isrenato
Copy link

@isrenato isrenato commented Jan 27, 2021

Implemented requirements of the PHP 8

src/Aggregation/AbstractAggregation.php Outdated Show resolved Hide resolved
public function __construct($name, $field = null, $origin = null, $ranges = [], $unit = null, $distanceType = null)
{
public function __construct(
protected string $name,

Choose a reason for hiding this comment

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

Why did you change properties to protected?

Copy link
Author

Choose a reason for hiding this comment

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

fixed

$extendedBoundsMin = null,
$extendedBoundsMax = null,
$keyed = null
private string $name,

Choose a reason for hiding this comment

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

Why you changed visibility to private?

Copy link
Author

Choose a reason for hiding this comment

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

Otherwise, there will be a mixture of properties and method parameters

* @throws \LogicException
*/
private function isRequiredParametersSet($a)
private function isRequiredParametersSet(array $a): void

Choose a reason for hiding this comment

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

The previous implementation returned bool, why did you changed to void?

Copy link
Author

Choose a reason for hiding this comment

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

fixed

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