diff --git a/src/Locator/ConfigurationFile.php b/src/Locator/ConfigurationFile.php index 0cad59012..bf8552f51 100644 --- a/src/Locator/ConfigurationFile.php +++ b/src/Locator/ConfigurationFile.php @@ -72,7 +72,7 @@ private function useConfigPathFromComposer(PackageInterface $package, $defaultPa */ private function locateConfigFileWithDistSupport($defaultPath) { - $distPath = (strpos($defaultPath, -5) !== '.dist') ? $defaultPath . '.dist' : $defaultPath; + $distPath = (substr($defaultPath, -5) !== '.dist') ? $defaultPath . '.dist' : $defaultPath; if ($this->filesystem->exists($defaultPath) || !$this->filesystem->exists($distPath)) { return $defaultPath; }