Skip to content

Resolve some deprecations and remove igorw/get-in dependency #1257

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

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

norkunas
Copy link
Member

@norkunas norkunas commented May 30, 2025

  • Drop igorw/get-in dependency and use PHP null-coalescing instead;
  • Use phpunit assertObjectHasProperty(...) over deprecated assertObjectHasAttribute(...);
  • Use phpunit ->willReturn(...) over ->will($this->returnValue(...));
  • Use phpunit ->willReturnCallback(...) over ->will($this->returnCallback(...));
  • Use phpunit createPartialMock over deprecated getMockBuilder::setMethods(...);
  • Remove deprecated phpstan checkGenericClassInNonGenericObjectType option;
  • Bump phpunit to 9.6.11 (this will be consistent across codebase, also assertObjectHasProperty was introduced only in 9.6);

@jbelien
Copy link
Member

jbelien commented May 31, 2025

@norkunas Looks interesting! Could you provide some description to your PR to explain what has been done and why ? Thanks.

@norkunas
Copy link
Member Author

@jbelien Ok, will add it on monday

@norkunas
Copy link
Member Author

norkunas commented Jun 4, 2025

@jbelien i've updated description.

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.

2 participants