Skip to content

Depreated passing null to strtolower #95

Closed
@djculex

Description

@djculex

Hey there while trying to use your great script in a project I got an error while processing a page

Deprecated: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in....class/PHPCheckstyle.php line 3377

I noticed function names, class names all as default is set to null

$this->_currentClassname = null;

Fix is replacing null with empty string ""

$this->_currentFunctionName = ""; $this->_currentClassname = ""; $this->_currentInterfacename = ""; $this->_currentFilename = ""; $this->_packageName = "";

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions