Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

Update GlobalFunctionsHelper.php #859

Closed
wants to merge 2 commits into from
Closed

Update GlobalFunctionsHelper.php #859

wants to merge 2 commits into from

Conversation

joergmoenke
Copy link
Contributor

@joergmoenke joergmoenke commented Jan 25, 2022

PHP 8.1 issue. $suffix may not be null when using PHP's basename function. Default value is an empty string. Belongs to issue #844

@CLAassistant
Copy link

CLAassistant commented Jan 25, 2022

CLA assistant check
All committers have signed the CLA.

@@ -248,7 +248,7 @@ public function is_readable($fileName)
*/
public function basename($path, $suffix = null)
Copy link
Collaborator

Choose a reason for hiding this comment

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

looking at the method signature (https://www.php.net/manual/en/function.basename), it should be:

public function basename($path, $suffix = '')

Changing the signature (and associated PHPDoc) would be a better fix I believe.

@joergmoenke joergmoenke closed this Feb 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants