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

Add PHP 8.2 support #44

Closed
wants to merge 1 commit into from
Closed

Add PHP 8.2 support #44

wants to merge 1 commit into from

Conversation

fezfez
Copy link
Contributor

@fezfez fezfez commented Oct 22, 2022

No description provided.

Signed-off-by: Stéphane Demonchaux <[email protected]>
@@ -479,7 +479,7 @@ protected function _basicAuth($header)

// Decode the Authorization header
$auth = substr($header, strlen('Basic '));
if ($auth === false) {
if ($auth === '') {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this change was highlight by psalm

see change log for substr


8.0.0 | The function returns an empty string where it previously returned false.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Ocramius what do you think ?

Copy link
Member

Choose a reason for hiding this comment

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

Was a test failing here?

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, we should make sure this path is hit with a test 🤔

@Ocramius
Copy link
Member

@fezfez this targets 3.0.x - that's the next major.

We need a 2.x release, if you want that to get out soon-ish :D

@fezfez fezfez changed the base branch from 3.0.x to 2.12.x October 24, 2022 06:35
@fezfez fezfez changed the base branch from 2.12.x to 3.0.x October 24, 2022 06:43
@fezfez
Copy link
Contributor Author

fezfez commented Oct 24, 2022

closing in favor of #45

@fezfez fezfez closed this Oct 24, 2022
@Ocramius Ocramius removed this from the 3.0.0 milestone Oct 24, 2022
@Ocramius Ocramius added the Duplicate This issue or pull request already exists label Oct 24, 2022
@Ocramius
Copy link
Member

Part of #46

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate This issue or pull request already exists Enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants