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

Provide PHP 8.1 support #26

Merged
merged 6 commits into from
Nov 16, 2021
Merged

Provide PHP 8.1 support #26

merged 6 commits into from
Nov 16, 2021

Conversation

samsonasik
Copy link
Member

@samsonasik samsonasik commented Sep 14, 2021

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

@Ocramius Ocramius added dependencies Pull requests that update a dependency file Enhancement labels Sep 14, 2021
@Ocramius Ocramius added this to the 0.1.0 milestone Sep 14, 2021
@samsonasik
Copy link
Member Author

It seems php 8.1, with latest phpstan, it still error:

PHP Fatal error:  During inheritance of ArrayAccess: Uncaught Return type of Hoa\Protocol\Node\Node::offsetExists($name) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

phar:///github/workspace/vendor/phpstan/phpstan/phpstan.phar/vendor/hoa/protocol/Node/Node.php:134

@samsonasik
Copy link
Member Author

PHP 8.1 error possibly related with this phpstan/phpstan#5558

@Ocramius
Copy link
Member

Also related: Roave/BetterReflection#701

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>
Signed-off-by: Abdul Malik Ikhsan <samsonasik@gmail.com>
Signed-off-by: Abdul Malik Ikhsan <samsonasik@gmail.com>
@samsonasik
Copy link
Member Author

rebased and re-generated composer.lock from php 7.4

@samsonasik
Copy link
Member Author

@Ocramius All green 🎉

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 self-assigned this Nov 16, 2021
@Ocramius Ocramius merged commit 683d983 into laminas:0.1.x Nov 16, 2021
@samsonasik samsonasik deleted the php81-support branch November 16, 2021 00:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file Enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants