Skip to content
Snippets Groups Projects

Issue #3321282: Add 'declare(strict_types = 1)' where needed

2 files
+ 6
7
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -69,12 +69,7 @@ class PathLocator {
*/
public function getProjectRoot(): string {
// Assume that the vendor directory is immediately below the project root.
$project_root = $this->getVendorDirectory() . DIRECTORY_SEPARATOR . '..';
// @see https://github.com/bovigo/vfsStream/issues/207
return !str_starts_with($project_root, 'vfs://')
? realpath($project_root)
: $project_root;
return realpath($this->getVendorDirectory() . DIRECTORY_SEPARATOR . '..');
}
/**
Loading