Skip to content

Conversation

Crell
Copy link
Contributor

@Crell Crell commented Sep 24, 2021

I am not 100% certain of all of these, but this at least gets my tests locally to pass, except for those that require the git binary. My container doesn't have git in it so that fails. At least I don't get any deprecation warnings.

This works only with the updated Dom library from this PR: phpbench/dom#4

(I have edits allowed, so feel free to fix up anything you'd like done differently. I won't take offense. 😄 )

public function setPhpPath($phpPath): void
{
$this->phpPath = escapeshellarg($phpPath);
$this->phpPath = $phpPath ? escapeshellarg($phpPath) : '';
Copy link
Member

@dantleech dantleech Sep 24, 2021

Choose a reason for hiding this comment

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

is this a phpstan issue or php 8.1 ? should we throw an exception if the string is empty? would adding a type hint string be enough?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I didn't want to add types to the signature as that would be an API change. That is probably the better solution in general, but I was going for the absolute minimum impact to make the errors go away as I didn't have the broader context.

Thanks for the merge. I look forward to a release so that I can benchmark a new 8.1 library I'm working on. 😄

Copy link
Member

Choose a reason for hiding this comment

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

ideally I want to get GH actions running with 8.1 before tagging, but Xdebug isn't behaving for some reason, need to investigate...

Copy link
Member

Choose a reason for hiding this comment

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

https://github.com/phpbench/phpbench/releases/tag/1.1.2

the tests worked locally with 8.1+ xdebug, so disabled them in 8.1/GH actions for now

@dantleech dantleech merged commit e73706a into phpbench:master Sep 25, 2021
@dantleech
Copy link
Member

Thanks, i'll look into the above comment

@Crell Crell deleted the php81 branch September 25, 2021 17:29
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