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

Migration to phpstan/phpstan 1.10 #126

Merged
merged 5 commits into from
Jan 5, 2024
Merged

Migration to phpstan/phpstan 1.10 #126

merged 5 commits into from
Jan 5, 2024

Conversation

JulienRAVIA
Copy link
Contributor

@JulienRAVIA JulienRAVIA commented Nov 13, 2023

For the PHP8 migration ;)

There is one PHPStan error i don't manage to fix.

Any help to solve this one is apprecied :)

@JulienRAVIA JulienRAVIA marked this pull request as draft November 13, 2023 19:59
@JulienRAVIA JulienRAVIA marked this pull request as ready for review November 13, 2023 22:24
Comment on lines +39 to +42
/** @var ?class-string $repository */
$repository = $this->repository;

return $repository;
Copy link

Choose a reason for hiding this comment

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

why do not return repository & update type definition on property declaration ?

Suggested change
/** @var ?class-string $repository */
$repository = $this->repository;
return $repository;
return $this->repository;

Copy link
Contributor Author

@JulienRAVIA JulienRAVIA Jan 4, 2024

Choose a reason for hiding this comment

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

it's for the phpDoc ;) else it's not handled
it's very temporary, this pr : #124 will overwrite it.

@JulienRAVIA JulienRAVIA merged commit a881783 into main Jan 5, 2024
@JulienRAVIA JulienRAVIA deleted the upgrade-phpstan branch January 5, 2024 13:03
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