Skip to content

Conversation

@tcitworld
Copy link
Member

@tcitworld tcitworld commented Mar 22, 2022

$filter can be null as it's the default value passed in ContactsMenuController.

On PHP 8.1:

strlen(): Passing null to parameter #1 ($string) of type string is deprecated

@tcitworld tcitworld added bug 3. to review Waiting for reviews labels Mar 22, 2022
@tcitworld tcitworld added this to the Nextcloud 24 milestone Mar 22, 2022
@tcitworld tcitworld requested review from a team, come-nc, juliusknorr and skjnldsv and removed request for a team March 22, 2022 09:28
@tcitworld tcitworld force-pushed the fix-passing-null-to-strlen branch from e06d7cd to af2dffe Compare March 22, 2022 09:29
@tcitworld tcitworld force-pushed the fix-passing-null-to-strlen branch from af2dffe to 773f69c Compare March 22, 2022 14:51
@tcitworld tcitworld requested a review from come-nc March 22, 2022 14:52
@come-nc
Copy link
Contributor

come-nc commented Mar 24, 2022

/rebase

$filter can be null as it's the default value passed in
ContactsMenuController.

On PHP 8.1 : strlen(): Passing null to parameter #1 ($string) of type string is deprecated

Signed-off-by: Thomas Citharel <[email protected]>
@nextcloud-command nextcloud-command force-pushed the fix-passing-null-to-strlen branch from 773f69c to 0456f61 Compare March 24, 2022 09:56
@come-nc come-nc merged commit fbf1334 into master Mar 24, 2022
@come-nc come-nc deleted the fix-passing-null-to-strlen branch March 24, 2022 13:03
@come-nc
Copy link
Contributor

come-nc commented Mar 24, 2022

I guess no backport since 23 is not allowing PHP>8.0?

@come-nc come-nc added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Mar 24, 2022
@tcitworld
Copy link
Member Author

I guess no backport since 23 is not allowing PHP>8.0?

There's no PHP 8.0 specific code here. 🤔 The fusion null operator is here since PHP 7.

@skjnldsv skjnldsv mentioned this pull request Mar 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to release Ready to be released and/or waiting for tests to finish bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants