Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Returns trailing name component of path
<?php basename(string $path, string $suffix = ""): string
<?php         preg_match('/\>\>\>\>\>\>\> (.*?)\n/', $file, $matches);

        $source = $matches[1];



        $target = $this->getCurrentBranch(basename($throwable->getFile()));



        return [

            BaseSolution::create("Merge conflict from branch '$source' into $target")
<?php     public function searchClassMap(string $missingClass): ?string

    {

        foreach ($this->composer->getClassMap() as $fqcn => $file) {

            $basename = basename($file, '.php');



            if ($basename === $missingClass) {

                return $fqcn;
<?php                     foreach ($files as $file) {

                        if ($file instanceof SplFileInfo) {

                            $basename = basename($file->getRelativePathname(), '.php');



                            if ($basename === $missingClass) {

                                return $namespace.basename($file->getRelativePathname(), '.php');
<?php                             $basename = basename($file->getRelativePathname(), '.php');



                            if ($basename === $missingClass) {

                                return $namespace.basename($file->getRelativePathname(), '.php');

                            }

                        }

                    }
<?php             ->first(function ($compiledData) use ($compiledPath) {

                $comparePath = $compiledData['compiledPath'];



                return realpath(dirname($comparePath)).DIRECTORY_SEPARATOR.basename($comparePath) === $compiledPath;

            });

    }