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

Drop support for PHP 8.1, Upgrade Psalm to v6 & PHPUnit to v11 #255

Open
wants to merge 5 commits into
base: 4.4.x
Choose a base branch
from

Conversation

gsteel
Copy link
Member

@gsteel gsteel commented Jan 26, 2025

  • Removes some unnecessary Psalm plugins
  • General SA QA

As an alternative to changes made in #252 , try upgrading to Psalm v6 to see if callable intersections in parameterized class-strings work now.

Also,

- Removes some unnecessary Psalm plugins
- General SA QA

Signed-off-by: George Steel <george@net-glue.co.uk>
@gsteel gsteel added Enhancement Review Needed Dependencies Updates and changes to dependencies QA Quality assurance tasks such as static analysis improvements labels Jan 26, 2025
@gsteel gsteel added this to the 4.4.0 milestone Jan 26, 2025
Signed-off-by: George Steel <george@net-glue.co.uk>
Signed-off-by: George Steel <george@net-glue.co.uk>
…pectations

Signed-off-by: George Steel <george@net-glue.co.uk>
Signed-off-by: George Steel <george@net-glue.co.uk>
* @phpcs:disable Generic.Files.LineLength.TooLong
* @param class-string<FactoryInterface>|class-string<object&FactoryCallable>|FactoryCallable|FactoryInterface $factory
* @phpcs:enable Generic.Files.LineLength.TooLong
* @param class-string<FactoryInterface>|FactoryCallable|FactoryInterface $factory
Copy link
Member Author

Choose a reason for hiding this comment

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

Using intersections with callable in a class string parameter is not supported, i.e. class-string<object&callable> causes an InvalidDocblock issue in Psalm

* @phpcs:disable Generic.Files.LineLength.TooLong
* @psalm-param class-string<DelegatorFactoryInterface>|class-string<object&DelegatorCallable>|DelegatorCallable $factory
* @phpcs:enable Generic.Files.LineLength.TooLong
* @psalm-param class-string<DelegatorFactoryInterface>|DelegatorCallable $factory
Copy link
Member Author

Choose a reason for hiding this comment

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

Using intersections with callable in a class string parameter is not supported, i.e. class-string<object&callable> causes an InvalidDocblock issue in Psalm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Dependencies Updates and changes to dependencies Enhancement QA Quality assurance tasks such as static analysis improvements Review Needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant