File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -80,10 +80,10 @@ public static function getOptions() {
80
80
*
81
81
* @return {String} the final, post-2.1.0-style styleguideKitPath
82
82
*/
83
- protected static function getStyleguideKitPath ($ styleguideKitPath ) {
83
+ protected static function getStyleguideKitPath ($ styleguideKitPath = "" ) {
84
84
85
85
$ styleguideKitPathFinal = "" ;
86
- if ($ styleguideKitPath [0 ] == DIRECTORY_SEPARATOR ) {
86
+ if (isset ( $ styleguideKitPath [0 ]) && ( $ styleguideKitPath [ 0 ] == DIRECTORY_SEPARATOR ) ) {
87
87
if (strpos ($ styleguideKitPath , DIRECTORY_SEPARATOR ."vendor " .DIRECTORY_SEPARATOR === 0 )) {
88
88
$ styleguideKitPathFinal = $ styleguideKitPath ; // mistaken set-up, pass to final for clean-up
89
89
} else if (strpos ($ styleguideKitPath , self ::$ options ["baseDir " ]) === 0 ) {
You can’t perform that action at this time.
0 commit comments