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

Apply PHP 7.4 syntax and typed property #58

Merged
merged 4 commits into from
Jul 19, 2022

Conversation

samsonasik
Copy link
Member

Signed-off-by: Abdul Malik Ikhsan samsonasik@gmail.com

Q A
QA yes

Description

Since composer.json require php 7.4, php 7.4 syntax can be applied with typed properties.

  • For final class, typed properties for protected is allowed if no inherit of parent or used by its final class parent.
  • Otherwise, update only private properties.

@samsonasik
Copy link
Member Author

PHPUnit error is unrelated:

Running ./vendor/bin/phpunit
PHP Fatal error:  Declaration of Laminas\ServiceManager\AbstractTypedContainerImplementation::has(string $id): bool must be compatible with Laminas\Feed\Reader\ExtensionManagerInterface::has($extension) in /github/workspace/src/Reader/ExtensionPluginManager.php on line 28

ref #57 (comment)

@Ocramius
Copy link
Member

@samsonasik please check #59 - if reviewed, I can release and then merge this one on top of it.

@Ocramius Ocramius added this to the 2.19.0 milestone Jul 19, 2022
@Ocramius
Copy link
Member

@samsonasik a rebase should make this green

Signed-off-by: Abdul Malik Ikhsan <samsonasik@gmail.com>
Signed-off-by: Abdul Malik Ikhsan <samsonasik@gmail.com>
Signed-off-by: Abdul Malik Ikhsan <samsonasik@gmail.com>
Signed-off-by: Abdul Malik Ikhsan <samsonasik@gmail.com>
@samsonasik
Copy link
Member Author

@Ocramius rebased.

Copy link
Member

@Ocramius Ocramius left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@Ocramius Ocramius merged commit a84d940 into laminas:2.19.x Jul 19, 2022
@Ocramius Ocramius self-assigned this Jul 19, 2022
@samsonasik samsonasik deleted the apply-php74 branch July 19, 2022 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants