/**
* Checks if identifier ends with ::class and remove the leading backslash if it exists.
*/ if( $this->identifierEndsWithClassConstant($identifier) && ! $this->identifierStartsWithBackslash($identifier) ){ returnsubstr($identifier, 0, $this->getClassConstantPositionInIdentifier($identifier)); }