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

Fix issues in php 8.0 delta #6312

Merged
merged 2 commits into from
Aug 16, 2021
Merged

Fix issues in php 8.0 delta #6312

merged 2 commits into from
Aug 16, 2021

Conversation

TysonAndre
Copy link
Contributor

In a last minute change in php 8.0 after the feature freeze,
PhpToken::getAll was changed to tokenize

Also, https://www.php.net/manual/en/function.mb-get-info
has been around since php 4.2 - it's in psalm/dictionaries/CallMap.php
already with the same signature. Same for ReflectionNamedType::isBuiltin

Also, add signatures for getAttributes.

Also, use the same param names for fdiv that are found in reflection in
php 8.0 and 8.1 to support named arguments

In a last minute change in php 8.0 after the feature freeze,
PhpToken::getAll was changed to tokenize

Also, https://www.php.net/manual/en/function.mb-get-info
has been around since php 4.2 - it's in psalm/dictionaries/CallMap.php
already with the same signature. Same for ReflectionNamedType::isBuiltin

Also, add signatures for getAttributes.

Also, use the same param names for fdiv that are found in reflection in
php 8.0 and 8.1 to support named arguments
@weirdan
Copy link
Collaborator

weirdan commented Aug 15, 2021

I'm going to fix issues in this PR.

@TysonAndre
Copy link
Contributor Author

Oh, CallMap.php is using 8.0 as the base. And mb_get_info should be in CallMap_historical.php. I'd assumed that psalm was still using 7.x as a base

I'm going to fix issues in this PR.

Will let you do that since you've already started

@weirdan
Copy link
Collaborator

weirdan commented Aug 15, 2021

Yeah, 'historical' is for 7.0 and below, while CallMap.php is targeting current version (8.0).

@weirdan weirdan merged commit 3e6f5bd into vimeo:master Aug 16, 2021
@weirdan
Copy link
Collaborator

weirdan commented Aug 16, 2021

Thanks!

@TysonAndre TysonAndre deleted the fix-80-delta branch September 6, 2021 17:31
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.

None yet

2 participants