Skip to content

feat: PHPUnit 10.3 support#62

Closed
michalbundyra wants to merge 3 commits intophp-mock:masterfrom
michalbundyra:feat/phpunit-10.3
Closed

feat: PHPUnit 10.3 support#62
michalbundyra wants to merge 3 commits intophp-mock:masterfrom
michalbundyra:feat/phpunit-10.3

Conversation

@michalbundyra
Copy link
Copy Markdown
Member

No description provided.

Copy link
Copy Markdown
Contributor

@marcoscoelho marcoscoelho left a comment

Choose a reason for hiding this comment

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

however, if the var cannot be changed by ref. it will not make sense to call the implementation.

);
} else {
MockFunctionGenerator::removeDefaultArguments($invocation->parameters);
MockFunctionGenerator::removeDefaultArguments($invocation->parameters());
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

fix only vars can be passed as reference.

Suggested change
MockFunctionGenerator::removeDefaultArguments($invocation->parameters());
$paramaters = $invocation->parameters();
MockFunctionGenerator::removeDefaultArguments($paramaters);

{
$remover = function () {
MockFunctionGenerator::removeDefaultArguments($this->parameters);
MockFunctionGenerator::removeDefaultArguments($this->parameters());
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

fix only vars can be passed as reference.

Suggested change
MockFunctionGenerator::removeDefaultArguments($this->parameters());
$paramaters = $this->parameters();
MockFunctionGenerator::removeDefaultArguments($paramaters);

@michalbundyra
Copy link
Copy Markdown
Member Author

Closing in favour of #63

@michalbundyra michalbundyra deleted the feat/phpunit-10.3 branch October 27, 2023 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants