convertSingleStarPathEndingIntoGlobPattern()
convertSingleStarPathEndingIntoGlobPattern(
Deprecated: Please use getType in /opt/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
Deprecated: Please use getType in /opt/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
string $path)
Deprecated: Please use getType in /opt/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
Deprecated: Please use getType in /opt/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
: string
Make a `/*` ending backwards compatible for v2.
In phpDocumentor 3 we started adopting the glob pattern with globstar extension to properly define patterns
matching file paths. This is incompatible with phpDocumentor 2, that interpreted a * to mean any number of
characters, including the path separator.
To ensure this behaviour is properly translated, this method will detect if a path ends with /*, and if it is
not a globstar pattern, we convert it to one. This matches the behaviour in phpDocumentor 2 without user
interaction.
Parameters
Deprecated: Please use getType in /opt/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
string |
$path |
|
Deprecated: Please use getType in /opt/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
Returns
Deprecated: Please use getType in /opt/phpdoc/src/phpDocumentor/Descriptor/Traits/CanHaveAType.php on line 50
string
—