Skip to content

Commit

Permalink
Merge pull request #585 from janvernieuwe/issue/576
Browse files Browse the repository at this point in the history
Fix deprecation warning
  • Loading branch information
veewee committed Jan 11, 2019
2 parents a0f13bd + ccb2a4e commit 9814105
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Locator/ConfigurationFile.php
Expand Up @@ -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;
}
Expand Down

0 comments on commit 9814105

Please sign in to comment.