Page MenuHomePhorge

Fix PHP 8.1 auth view strlen(null) error

Authored by Sten on Tue, Sep 5, 14:16.
Referenced Files
Unknown Object (File)
Tue, Sep 26, 06:50
Unknown Object (File)
Thu, Sep 21, 21:43
Unknown Object (File)
Thu, Sep 21, 07:53
Unknown Object (File)
Thu, Sep 21, 06:25
Unknown Object (File)
Wed, Sep 20, 10:04
Unknown Object (File)
Sun, Sep 17, 07:46
Unknown Object (File)
Fri, Sep 15, 19:30
Unknown Object (File)
Fri, Sep 15, 13:54



Trying to view a Jira auth provider from results in strlen(): Passing null to parameter #1 ($string) of type string is deprecated

This change fixes it

Fixes T15634

Test Plan

Go to and have a Jira already setup.
Click on Jira auth provider
Confirm the page is displayed and no error is generated.

Diff Detail

rP Phorge
Lint Not Applicable
Tests Not Applicable

Event Timeline

Sten requested review of this revision.Tue, Sep 5, 14:16

I tried to test this but I have not a real JIRA account and I was not able to test a non-null value. But, I inspected all the definitions of that method and it seems it only returns pht() so I would assume that it only returns strings.

This revision is now accepted and ready to land.Sun, Sep 10, 00:27
This revision was automatically updated to reflect the committed changes.