function Deprecation::basename
A non-local-aware version of PHPs basename function.
1 call to Deprecation::basename()
- Deprecation::delegateTriggerToBackend in vendor/
doctrine/ deprecations/ lib/ Doctrine/ Deprecations/ Deprecation.php
File
-
vendor/
doctrine/ deprecations/ lib/ Doctrine/ Deprecations/ Deprecation.php, line 216
Class
- Deprecation
- Manages Deprecation logging in different ways.
Namespace
Doctrine\DeprecationsCode
private static function basename(string $filename) : string {
$pos = strrpos($filename, DIRECTORY_SEPARATOR);
if ($pos === false) {
return $filename;
}
return substr($filename, $pos + 1);
}